bp_enqueue_assets_in_bp_pages_only

bp_enqueue_assets_in_bp_pages_only

Hook Type: filter

See hook in core

Displaying hooks found in version: buddypress.14.3.3

apply_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 );