Skip to:
Content
Pages
Categories
Search
Top
Bottom

do_action( ‘bp_group_header_actions’ )


  • alanchrishughes
    Participant

    @alanchrishughes

    I’ve been trying to change the label “groups” into “discussions” and in the group-header there are the “join group” and “leave group” buttons I wanted to change, but when I tracked down the code instead of the buttons actually being there, there was some programming code do_action( ‘bp_group_header_actions’ ) that apparently creates both buttons. How would I go about tracking them down or simply re-creating them each the simple way?

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

  • modemlooper
    Moderator

    @modemlooper

    You change text by creating a custom language file. Check the codex docs, there is a tutorial


    alanchrishughes
    Participant

    @alanchrishughes

    Is there not a simpler way of just doing it directly? Is bp_group_header_actions the only way to add these links?


    modemlooper
    Moderator

    @modemlooper

    The problem with doing it directly is most text is buried in function code and will get over written on plugin upgrade. Plus you can change every instance if the word groups


    alanchrishughes
    Participant

    @alanchrishughes

    Yeah I don’t understand why they do that, bury everything in the function code so you can’t design anything without hacking it up or writing a plugin just to change a word or remove a button.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘do_action( ‘bp_group_header_actions’ )’ is closed to new replies.
Skip to toolbar