bp_enqueue_assets_in_bp_pages_only
bp_enqueue_assets_in_bp_pages_only
Appears in: buddypress.11.0.0, buddypress.11.1.0, buddypress.11.2.0, buddypress.11.3.2, buddypress.11.4.0, buddypress.12.0.0, buddypress.12.1.1, buddypress.12.2.0, buddypress.12.3.0, buddypress.12.4.0, buddypress.12.4.1, buddypress.12.5.0, buddypress.12.5.1, buddypress.14.0.0, buddypress.14.1.0, buddypress.14.2.1, buddypress.14.3.3
Hook Type: filter
Displaying hooks found in version: buddypress.14.3.3apply_filters('bp_enqueue_assets_in_bp_pages_only') is found 3 times:
- /bp-core/bp-core-dependency.php line 525
* @since 12.0.0 Default value has been switched from `false` to `true`. * * @param bool $value True to only load BP Assets inside BP generated pages. False otherwise. */ $bp_pages_only = apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ); if ( 'embed' === $context || $bp_pages_only ) { $bp_pages_only_assets = true; } if ( $bp_pages_only_assets && ! is_buddypress() ) {
- /bp-templates/bp-legacy/buddypress-functions.php line 88
add_action( 'bp_enqueue_community_scripts', array( $this, 'enqueue_scripts' ) ); // Enqueue theme JS add_action( 'bp_enqueue_community_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization /** This filter is documented in bp-core/bp-core-dependency.php */ if ( is_buddypress() || ! apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) { // Body no-js class. add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 ); } /** Buttons ***********************************************************/
- /bp-templates/bp-nouveau/buddypress-functions.php line 227
add_action( 'bp_enqueue_community_scripts', array( $this, 'localize_scripts' ) ); remove_action( 'bp_enqueue_community_scripts', 'bp_core_confirmation_js' ); /** This filter is documented in bp-core/bp-core-dependency.php */ if ( is_buddypress() || ! apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) { // Body no-js class. add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 ); } // Ajax querystring. add_filter( 'bp_ajax_querystring', 'bp_nouveau_ajax_querystring', 10, 2 );