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.2.7

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

  • /includes/api/api-template.php line 1002
    0998
    0999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    }
     
    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' );