cmb2_should_pre_enqueue

cmb2_should_pre_enqueue

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: cmb2.2.11.0

apply_filters('cmb2_should_pre_enqueue') is found 1 times:

  • /includes/CMB2_Hookup.php line 337
    		 * @param bool   $should_pre_enqueue Whether CMB2 should be pre-enqueued on the current page.
    		 * @param string $hook               The current hook for the admin page.
    		 * @param object $cmb                The CMB2 object.
    		 */
    		$should_pre_enqueue = apply_filters( 'cmb2_should_pre_enqueue', $should_pre_enqueue, $hook, $this );
    
    		// only pre-enqueue our scripts/styles on the proper pages
    		// show_form_for_type will have us covered if we miss something here.
    		if ( $should_pre_enqueue ) {
    			if ( $this->cmb->prop( 'cmb_styles' ) ) {
    				self::enqueue_cmb_css();