_wp_footnotes_force_filtered_html_on_import_filter( string $arg ): string

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Initializes footnotes meta field filters when imported data should be filtered.

Description

This filter is the last being executed on force_filtered_html_on_import.
If the input of the filter is true it means we are in an import situation and should enable kses, independently of the user capabilities.
So in that case we call _wp_footnotes_kses_init_filters;

Parameters

$argstringrequired
Input argument of the filter.

Return

string Input argument of the filter.

Source

function _wp_footnotes_force_filtered_html_on_import_filter( $arg ) {
	// force_filtered_html_on_import is true we need to init the global styles kses filters.
	if ( $arg ) {
		_wp_footnotes_kses_init_filters();
	}
	return $arg;
}

Changelog

VersionDescription
6.3.2Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.