acf/shortcode/allow_unsafe_html

acf/shortcode/allow_unsafe_html

Hook Type: filter

See hook in core

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

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

  • /includes/api/api-template.php line 1072
    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
        $unescaped_value = implode( ', ', $unescaped_value );
    }
     
    // Handle getting the unescaped version if we're allowed unsafe html.
    if ( apply_filters( 'acf/shortcode/allow_unsafe_html', false, $atts, $field_type, $field ) ) {
        $value = $unescaped_value;
    } elseif ( (string) $value !== (string) $unescaped_value ) {
        do_action( 'acf/removed_unsafe_html', __FUNCTION__, $atts['field'], $field, $post_id );
    }
     
    return $value;