BuddyDev

Search

Buddypress profile completion and avatar plugin conflict

  • Participant
    Level: Guru
    Posts: 741
    Tosin on #44576

    Hello Ravi,

    This issue at (https://buddydev.com/support/forums/topic/change-buddypress-force-profile-photo-plugin-redirection/) is recurring again after recent updates

    Also please note that im using this code below to change redirect but when liera avatar plugin is active the redirect does not work

    // filter buddypress profile completion redirect url to the (complete-profile) page.
    add_filter( 'buddypress_profile_completion_redirect', function ( $redirect_url ) {
    	return get_permalink( 34168 );
    } );

    and

    function buddydev_dont_skip_redirect_on_cta_pages( $skip ) {
    	if( is_page( array( 'publish', 'create-new-post', 'advertise', 'create-new-advert', 'manage-listings' ) ) ) {
    		if( is_user_logged_in() ){
    		$skip = false;
    	}
      }
    	return $skip;
    }
    add_filter( 'bp_force_profile_completion_skip_check', 'buddydev_dont_skip_redirect_on_cta_pages', 20 );

    Thanks

  • Participant
    Level: Guru
    Posts: 741
    Tosin on #44578

    while liera avatar is active newly registered users who have not uploaded their profile picture can access the restricted pages (‘publish’, ‘create-new-post’, ‘advertise’, ‘create-new-advert’, ‘manage-listings’)

  • Keymaster
    (BuddyDev Team)
    Posts: 22218
    Brajesh Singh on #44583

    Hi Tosin,
    I am guessing that the avatar plugin is returning has_avatar true for BuddyPress. Please contact and check with their author about it.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved