Code snippets for front-end developers and WordPress web designers, mostly.

WordPress Javascript Redirect Snippet

WordPress Tutorials & Code Snippets - WordPress Javascript Redirect Code Snippet
November 29, 2017 @ 1:47 pm
Simple WordPress/PHP/Javascript code snippet which redirects users, who are not logged into the website, to another designated URL. Add this snippet to your theme’s functions.php file to use. Be sure to change the value of $redirect_url from to the URL users should be redirected to. Create a directory: ‘maintenance’, and within place a simple […]