redirect user edit profile to custom page
-
Can anyone help with correct code? I want complete user click edit profile will direct 100% go to custom page like normal without any issue
Issue 1:
First load edit page complete, after that 2 second, reload custom pageadd_action( ‘bbp_user_edit_before’, ‘pb_custom_bbpress_edit_profile’ );
function pb_custom_bbpress_edit_profile(){
echo ‘<meta http-equiv=”Refresh” content=”0;url=http://example.com” />’;
}Issue 2:
No workadd_filter( ‘bbp_pre_get_user_profile_url’, function() {
return get_bloginfo(‘example.com’).’/profile’;
});Issue 3:
Still load edit profile link without load custom like. But given blank page, no error no warning, just empty link pageadd_action( ‘bbp_user_edit_before’, ‘pb_custom_bbpress_edit_profile’ );
function pb_custom_bbpress_edit_profile(){
echo ‘‘;
}==============
Also change the default url for favorites and subscriptions by doing this:
How can i correct it?// Replace the default link for the favorites
add_filter( ‘bbp_get_favorites_permalink’, function() {
return get_bloginfo(‘example.com’).’/profile/forum-favorites’;
});// Replace the default link for subscriptions
add_filter( ‘bbp_get_subscriptions_permalink’, function() {
return get_bloginfo(‘example.com’).’/profile/forum-subscriptions’;
});=============
Thanks
- You must be logged in to reply to this topic.