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
    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() ) {