Alert: 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.

_wp_add_global_attributes( array $value )

Helper function to add global attributes to a tag in the allowed html list.


Parameters Parameters

$value

(array) (Required) An array of attributes.


Top ↑

Return Return

(array) The array of attributes with global attributes added.


Top ↑

Source Source

File: wp-includes/kses.php

	return chr( $match[1] );
}

/**
 * Regex callback for `wp_kses_decode_entities()`.
 *
 * @since 2.9.0
 * @access private
 * @ignore
 *
 * @param array $match preg match
 * @return string
 */
function _wp_kses_decode_entities_chr_hexdec( $match ) {
	return chr( hexdec( $match[1] ) );
}

/**
 * Sanitize content with allowed HTML KSES rules.
 *
 * This function expects slashed data.
 *
 * @since 1.0.0

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Add support for data-* wildcard attributes.
3.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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