_acf_kses_allowed_html()ACF 5.9.6

Private callback for the "wp_kses_allowed_html" filter used to return allowed HTML for "acf" context.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Returns

Array.

Usage

_acf_kses_allowed_html( $tags, $context );
$tags(array) (required)
An array of allowed tags.
$context(string) (required)
The context name.

Changelog

Since 5.9.6 Introduced.

_acf_kses_allowed_html() code ACF 6.8.8

function _acf_kses_allowed_html( $tags, $context ) {
	global $allowedposttags;

	if ( $context === 'acf' ) {
		return $allowedposttags;
	}
	return $tags;
}