Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2024 10:55:43 AM (16 months ago)
Author:
imath
Message:

BP Standalone Block Themes: adapt Groups template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.
  • Adds a groups/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/screens/single/members.php

    r13103 r13762  
    1212 *
    1313 * @since 1.0.0
     14 *
     15 * @return void
    1416 */
    1517function groups_screen_group_members() {
    1618
    1719    if ( ! bp_is_single_item() ) {
    18         return false;
     20        return;
    1921    }
    2022
     
    3032    do_action( 'groups_screen_group_members', $bp->groups->current_group->id );
    3133
    32     /**
    33      * Filters the template to load for a group's Members page.
    34      *
    35      * @since 1.0.0
    36      *
    37      * @param string $value Path to a group's Members template.
    38      */
    39     bp_core_load_template( apply_filters( 'groups_template_group_members', 'groups/single/home' ) );
     34    $templates = array(
     35        /**
     36         * Filters the template to load for a group's Members page.
     37         *
     38         * @since 1.0.0
     39         *
     40         * @param string $value Path to a group's Members template.
     41         */
     42        apply_filters( 'groups_template_group_members', 'groups/single/home' ),
     43        'groups/single/index',
     44    );
     45
     46    bp_core_load_template( $templates );
    4047}
Note: See TracChangeset for help on using the changeset viewer.