marstheme

Untitled

Apr 12th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. if( ! function_exists( 'videotube_redirect_to_after_logged_in' ) ){
  2.    
  3.     /**
  4.      * Redirect logged in user to custom url
  5.      * @param string $redirect_to
  6.      * @param int $user_id
  7.      */
  8.    
  9.     function videotube_redirect_to_after_logged_in( $redirect_to, $user_id ) {
  10.        
  11.         $redirect_to    =   'http://custom-url.com';
  12.        
  13.         return $redirect_to;
  14.        
  15.     }
  16.     add_filter( 'vt_logged_redirect_to' , 'videotube_redirect_to_after_logged_in', 20 );
  17. }
Advertisement
Add Comment
Please, Sign In to add comment