Hello Ravi,
The Buddypress profile completion plugin is no longer compatible with leira-letter-avatar plugin. The leira-letter-avatar plugin has been updated in recent times and I think the compatibility you added before is now broken.
https://wordpress.org/support/topic/buddypress-profile-completion-plugin-support/
Thanks
Hello Ravi,
That’s strange, I have the code below in bp-custom.php but its not working while liera avatar plugin is active, the code only works when liera avatar plugin is deactivated.
function buddydev_skip_urls_on_loggedin_user_profile_page( $skip ) { if ( bp_is_my_profile() ) { $skip = true; } return $skip; } add_filter( 'bp_force_profile_completion_skip_check', 'buddydev_skip_urls_on_loggedin_user_profile_page' ); function buddydev_skip_urls_on_members_directory( $skip ) { if ( bp_is_members_directory() ) { $skip = false; } return $skip; } add_filter( 'bp_force_profile_completion_skip_check', 'buddydev_skip_urls_on_members_directory' ); function buddydev_skip_urls_on_activity_directory( $skip ) { if ( bp_is_activity_directory() ) { $skip = true; } return $skip; } add_filter( 'bp_force_profile_completion_skip_check', 'buddydev_skip_urls_on_activity_directory' ); /** * Do not redirect users on non bp pages. * * @param bool $skip should we skip or redirect. * * @return bool */ function buddydev_skip_redirect_on_non_bp_pages( $skip ) { if ( ! is_buddypress() ) { $skip = true; } return $skip; } add_filter( 'bp_force_profile_completion_skip_check', 'buddydev_skip_redirect_on_non_bp_pages' ); /** * Do not skip redirect on new post. * * @param bool $skip should we skip? * * @return bool */ function buddydev_dont_skip_redirect_on_cta_pages( $skip ) { if( is_page( array( 'publish', 'create-new-post', 'create-sponsored-post', 'create-private-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
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
This topic is: not resolved