acf/shortcode/allow_in_block_themes_outside_content

acf/shortcode/allow_in_block_themes_outside_content

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.1.7

apply_filters('acf/shortcode/allow_in_block_themes_outside_content') is found 1 times:

  • /includes/api/api-template.php line 859
    	}
    
    	if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) {
    		// Prevent the ACF shortcode in FSE block template parts by default.
    		if ( ! doing_filter( 'the_content' ) && ! apply_filters( 'acf/shortcode/allow_in_block_themes_outside_content', false ) ) {
    			return;
    		}
    	}
    
    	// Limit previews of ACF shortcode data for users without publish_posts permissions.
    	$preview_capability = apply_filters( 'acf/shortcode/preview_capability', 'publish_posts' );