Skip to:
Content
Pages
Categories
Search
Top
Bottom

Extend the group’s search form


  • frenchWebMaster
    Participant

    @frenchwebmaster

    Hi everyone,

    I’m trying to design a new BP plugin in order to add some new search fields. I’ve find the BP function using in order to create the form (Buddypress -> bp-groups -> bp-groups-template.php -> bp_directory_groups_search_form()). But I don’t know how can I override it … I’ve tried to add a action : add_action(‘bp_directory_groups_search_form’, ‘mycutomfunction’) in my plugin but it doesn’t work … Is anyone aware about this ?

    Thank you very much for help :)

Viewing 1 replies (of 1 total)
  • That function doesn’t have any filters or action calls. You’re probably best to find an action in the default theme’s template surrounding where this function is used*.

    *If you need to add new fields into the *form*, then that’s not possible at the moment. You could contribute a patch to add a new action into this function on https://buddypress.trac.wordpess.org so that we could get it in to a future release :)

Viewing 1 replies (of 1 total)
  • The topic ‘Extend the group’s search form’ is closed to new replies.
Skip to toolbar