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

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

  • /includes/api/api-template.php line 1019
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    }
     
    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' );