BuddyDev

Search

Disable BuddyPress Profile Completion on a specific context

  • Participant
    Level: Enlightened
    Posts: 26
    Ahmed on #25263

    Hi,

    I use paidmembership pro and would like to disable BuddyPress Profile Completion plugin for one level,

    function my_custom_dequeue()
    {
        if (is_user_logged_in() && pmpro_hasMembershipLevel(1)) {
            // Disable BuddyPress Profile Completion
        }
    }
    
    add_action('wp_enqueue_scripts', 'my_custom_dequeue', 0);

    how can i do that?

    thanks!

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2952
    Ravi on #25266

    Hello Ahmed,

    Thank you for posting. There is one hook which allows to skip profile completion. Please refer the following url:

    https://github.com/buddydev/bp-profile-completion/blob/master/src/core/class-bp-profile-completion-helper.php#L178

    Regards
    Ravi

You must be logged in to reply to this topic.

This topic is: not resolved