Viewing 1 replies (of 1 total)
  • Plugin Author Ismail

    (@elhardoum)

    Hello,

    I just figured out you posted about this here http://support.samelh.com/forums/topic/redirect-profile/ . Thanks, we will continue from there.

    To disable the edit profile page, you can redirect it to some custom page where users can edit their usual profiles or browse users etc.. use this code:

    add_action('_wpc_before_profile_edit_page', function() {
    
    	// You can use wp_get_current_user()->user_nicename to get the current user slug
    	// and use it instead of 'my-profile'..
    
    	wp_redirect('http://example.com/users/my-profile/edit/');
    	exit;
    
    });

    Let me know how it goes.

    Thanks,
    Samuel

Viewing 1 replies (of 1 total)
  • The topic ‘Custom plugin’ is closed to new replies.