Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to hide content related to members who are registered but NOT activated

  • @dslax27

    Member

    Hello,
    I tried to show content related activated members and hide content related to members who are registered but NOT activated two different ways, but without success:

    **Failed attempt #1:
    `
    [BUDDYPRESS CODE]

    `

    **Failed attempt #2:

    `
    [BUDDYPRESS CODE]

    `

    Any ideas where I went wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @davidtcarson

    Participant

    `bp_is_active()` checks if a BP $component is active – not whether members are registered but not activated. The `bp_account_was_activated` function is used in the activate.php template but isn’t appropriate here I don’t think.

    In addition to the BuddyPress Conditional Tags – https://codex.buddypress.org/developer-docs/conditional-template-tags/ – you might also look at WordPress Conditional Tags – https://codex.wordpress.org/Conditional_Tags – to see if there are any that will work for you.

    P.S. I just saw your other post.

    `
    This occurs due to my BuddyPress Auto Group Join plugin. How can I hide the not-yet-activated members from appearing on the Group Members page?
    `

    It seems like it would be better to modify the plugin(s) causing the issue instead of modifying the BP code. Maybe the plugin developers can assist.

    @dslax27

    Member

    @DavidCarson: `It seems like it would be better to modify the plugin(s) causing the issue instead of modifying the BP code. Maybe the plugin developers can assist.`
    That’s what I’m thinking – I may need to modify the plugin code.

    Generally speaking, since the `bp_is_active` and `bp_account_was_activated` functions are not relevant in this scenario, is there a function that would work?

    @dslax27

    Member

    Anyone?

    @dslax27

    Member

    `Generally speaking, since the bp_is_active and bp_account_was_activated functions are not relevant in this scenario, is there a function that would work?`

    Anyone have an idea?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to hide content related to members who are registered but NOT activated’ is closed to new replies.
Skip to toolbar