Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2024 11:05:22 AM (6 months ago)
Author:
imath
Message:

BP Standalone Block Themes: adapt Settings 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.

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-settings/screens/delete-account.php

    r13090 r13766  
    1212 *
    1313 * @since 1.5.0
     14 *
     15 * @return void
    1416 */
    1517function bp_settings_screen_delete_account() {
     
    2022    }
    2123
    22     /**
    23      * Filters the template file path to use for the delete-account settings screen.
    24      *
    25      * @since 1.6.0
    26      *
    27      * @param string $value Directory path to look in for the template file.
    28      */
    29     bp_core_load_template( apply_filters( 'bp_settings_screen_delete_account', 'members/single/settings/delete-account' ) );
     24    $templates = array(
     25        /**
     26         * Filters the template file path to use for the delete-account settings screen.
     27         *
     28         * @since 1.6.0
     29         *
     30         * @param string $value Directory path to look in for the template file.
     31         */
     32        apply_filters( 'bp_settings_screen_delete_account', 'members/single/settings/delete-account' ),
     33        'members/single/index',
     34    );
     35
     36    bp_core_load_template( $templates );
    3037}
Note: See TracChangeset for help on using the changeset viewer.