Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. function redirect_users() {
  2.   global $redirect_to;
  3.   if (!isset($_GET['redirect_to'])) {
  4.     if ( !is_admin() ) {
  5.       $redirect_to = get_option('siteurl') . "/timetable/";
  6.     }
  7.   }
  8. }
  9. add_action('login_form', 'redirect_users');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement