acf/allow_unfiltered_html хук-фільтрACF 5.7.10

Filters whether the current user is allowed to save unfiltered HTML.

Використання

add_filter( 'acf/allow_unfiltered_html', 'wp_kama_acf_allow_unfiltered_html_filter' );

/**
 * Function for `acf/allow_unfiltered_html` filter-hook.
 *
 * @param bool $allow_unfiltered_html allow_unfiltered_html The result.
 *
 * @return bool
 */
function wp_kama_acf_allow_unfiltered_html_filter( $allow_unfiltered_html ){

	// Filter...
	return $allow_unfiltered_html;
}
$allow_unfiltered_html
(true|false)
allow_unfiltered_html The result.

список змін

З версії 5.7.10Введено.

Де викликається хук

acf/allow_unfiltered_html

acf/includes/acf-user-functions.php 118

return apply_filters( 'acf/allow_unfiltered_html', $allow_unfiltered_html );

Де використовується хук в Advanced Custom Fields

Використання не знайдено.

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *