acf/shortcode/allow_unsafe_html
Использование
add_filter( 'acf/shortcode/allow_unsafe_html', 'wp_kama_acf_shortcode_allow_unsafe_html_filter', 10, 4 );
/**
* Function for `acf/shortcode/allow_unsafe_html` filter-hook.
*
* @param $false
* @param $atts
* @param $field_type
* @param $field
*
* @return
*/
function wp_kama_acf_shortcode_allow_unsafe_html_filter( $false, $atts, $field_type, $field ){
// filter...
return $false;
}
- $false
- -
- $atts
- -
- $field_type
- -
- $field
- -
Где вызывается хук
acf/shortcode/allow_unsafe_html
acf/includes/api/api-template.php 1125
if ( apply_filters( 'acf/shortcode/allow_unsafe_html', false, $atts, $field_type, $field ) ) {