acf/shortcode/disabled_message

acf/shortcode/disabled_message

Hook Type: filter

See hook in core

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

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

  • /includes/api/api-template.php line 1011
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    function acf_shortcode( $atts ) {
        // Return if the ACF shortcode is disabled.
        if ( ! acf_get_setting( 'enable_shortcode' ) ) {
            if ( is_preview() ) {
                return apply_filters( 'acf/shortcode/disabled_message', __( '[The ACF shortcode is disabled on this site]', 'acf' ) );
            } else {
                return;
            }
        }
     
        if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) {