Advertisement
Guest User

Untitled

a guest
Nov 25th, 2013
1,599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. function my_new_redirect ( $old_message, $permalink ){
  2.  
  3. $where_to_redirect = 'http://www.mysite.com/page_to_redirect_to'; //please specify the url here
  4.  
  5.  
  6.  return '<font id="messageTextColor">' . sprintf(__('You will soon be redirected automatically. If you see this page for more than 1 second, please click %1$s', 'profilebuilder'), '<a href="'.$where_to_redirect.'">'. __('here', 'profilebuilder').'</a>.<meta http-equiv="Refresh" content="1;url='.$where_to_redirect.'" />') . '</font><br/><br/>';
  7. }
  8. add_filter( 'wppb_login_redirect_message', 'my_new_redirect', 10, 2 );
  9. add_filter( 'wppb_login_widget_redirect_message', 'my_new_redirect', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement