Skip to:
Content
Pages
Categories
Search
Top
Bottom

Syntax Question: bp_before_displayed_user_fullname

  • @rgrober

    Participant

    Hello,

    Example: bp_before_displayed_user_fullname

    What is the classification of this syntax?

    Understanding this will be very helpful in figuring things out on my own.

    Thank you!

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

    Moderator

    In which file are you seeing bp_before_displayed_user_fullname ?

    It’s probably a wordpress do_action hook.
    https://developer.wordpress.org/reference/functions/do_action/

    @rgrober

    Participant

    Thank you very much for the reply @shanebp!

    I found this on the member-header.php file.

    On a member’s profile page, I’m attempting to insert an element before the user’s name (directly before, not above), but I’m not sure which hook I’m supposed to use.

    I’m successfully adding content after/below the User’s name by using bp_before_member_header_meta

    Do plugins and themes create custom hooks in addition to the standard wordpress hooks?

    Again, I really, really appreciate your help!

    @shanebp

    Moderator

    I don’t see that hook in member-header.php

    You can create a template overload of that file and add what you need directly to the template.

    >Do plugins and themes create custom hooks

    Yes.

    @rgrober

    Participant

    Thank you very much, Shane! I really appreciate your help! A lot!

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