Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function redirect_users() {
- global $redirect_to;
- if (!isset($_GET['redirect_to'])) {
- if ( !is_admin() ) {
- $redirect_to = get_option('siteurl') . "/timetable/";
- }
- }
- }
- add_action('login_form', 'redirect_users');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement