Skip to:
Content
Pages
Categories
Search
Top
Bottom

Undefined function bbp_is_single_user_profile()


  • N33D
    Participant

    @n33d

    Hi there,

    Got a weird error. In my custom theme header I try to call this function:
    bbp_is_single_user_profile()

    And I got the error:
    Uncaught Error: Call to undefined function bbp_is_single_user_profile()

    After some research this function is correct right? I want to check if you are on a member page, since every page has it’s own source of an header image. This case from the cover image of the member.

    I use the latest version of WordPress and BuddyPress. Also there are no other plugins installed since it’s in development.

    Thanks in advance.
    Justin

Viewing 3 replies - 1 through 3 (of 3 total)

  • shanebp
    Moderator

    @shanebp

    bbp_is_single_user_profile() is a bbPress function.
    Use this: bp_is_member()


    N33D
    Participant

    @n33d

    Oh, lol. Stupid mistake. Thanks!


    N33D
    Participant

    @n33d

    Well, it seems Uncaught Error: Call to undefined function bp_is_member() is also not correct.

    Perhaps the correct function is bp_is_user ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar