acf_allow_unfiltered_html()ACF 5.7.10

acf_allow_unfiltered_html

Returns true if the current user is allowed to save unfiltered HTML.

Hooks from the function

Returns

true|false.

Usage

acf_allow_unfiltered_html();

Changelog

Since 5.7.10 Introduced.

acf_allow_unfiltered_html() code ACF 6.0.4

function acf_allow_unfiltered_html() {

	// Check capability.
	$allow_unfiltered_html = current_user_can( 'unfiltered_html' );

	/**
	 * Filters whether the current user is allowed to save unfiltered HTML.
	 *
	 * @date    9/1/19
	 * @since   5.7.10
	 *
	 * @param   bool allow_unfiltered_html The result.
	 */
	return apply_filters( 'acf/allow_unfiltered_html', $allow_unfiltered_html );
}