Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_new_redirect ( $old_message, $permalink ){
- $where_to_redirect = 'http://www.mysite.com/page_to_redirect_to'; //please specify the url here
- 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/>';
- }
- add_filter( 'wppb_login_redirect_message', 'my_new_redirect', 10, 2 );
- add_filter( 'wppb_login_widget_redirect_message', 'my_new_redirect', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement