Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trouble finding the PHP behind the "Create a Group" button


  • lpatmo
    Participant

    @lpatmo

    I’m having trouble finding the file that contains the HTML or PHP logic for the “Create a group” button in a page this: screenshot. Is the button generated by the database at all?

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

  • lpatmo
    Participant

    @lpatmo

    Also, when I ran a grep -R “Create a Group” search in my terminal in that theme’s directory, nothing came up. That’s why I wondered whether this feature was something DB-related and not something I could change in the PHP.


    shanebp
    Moderator

    @shanebp

    Always grep in the BP plugin folder first.

    bp_group_create_button()
    bp-groups\bp-groups-template.php ~L. 1890


    lpatmo
    Participant

    @lpatmo

    Thanks for responding, @shanebp! I don’t see bp_group_create_button() in line 1890 in wp-content/plugins/buddypress/bp-forums/bp-forums-template.php, though. Instead, line 1890 contains this comment:

    * Output the ID of the current post in the loop.

    Also, I’m confused: if I need to edit something from the core BP plugin to do something small like change the content of the text, how should I edit it? Is there such a thing as “child” plugins for the BP plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trouble finding the PHP behind the "Create a Group" button’ is closed to new replies.
Skip to toolbar