Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/07/2018 09:48:52 PM (7 years ago)
Author:
imath
Message:

BP Nouveau: bring back search form filters

Although it was already possible to override search form templates, as the following search form filters are not Legacy filters but Core components ones, we are bringing them back into the Nouveau template pack:

  • bp_directory_members_search_form
  • bp_directory_blogs_search_form
  • bp_directory_groups_search_form
  • bp_message_search_form

Props wbcomdesigns, DJPaul, vapvarun

Fixes #7881 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/messages/template-tags.php

    r12082 r12184  
    6262    do_action( 'bp_after_member_messages_content' );
    6363}
     64
     65/**
     66 * Output the Member's messages search form.
     67 *
     68 * @since  3.0.0
     69 * @since  3.2.0 Move the function into Template Tags and use a template part.
     70 */
     71function bp_nouveau_message_search_form() {
     72    $search_form_html = bp_buffer_template_part( 'common/js-templates/messages/search-form', null, false );
     73
     74    /**
     75     * Filters the private message component search form.
     76     *
     77     * @since 2.2.0
     78     *
     79     * @param string $search_form_html HTML markup for the message search form.
     80     */
     81    echo apply_filters( 'bp_message_search_form', $search_form_html );
     82}
Note: See TracChangeset for help on using the changeset viewer.