Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_kses_hook ›

Seit1.0.0
Veraltetn/v
wp_kses_hook ( $string, $allowed_html, $allowed_protocols )
Parameter: (3)
  • (string) $string Content to filter through kses
    Erforderlich: Ja
  • (array) $allowed_html List of allowed HTML elements
    Erforderlich: Ja
  • (array) $allowed_protocols Allowed protocol in links
    Erforderlich: Ja
Gibt zurück:
  • (string) Filtered content through {@see 'pre_kses'} hook.
Definiert in:
Codex:

You add any kses hooks here.

There is currently only one kses WordPress hook, {@see 'pre_kses'}, and it is called here. All parameters are passed to the hooks and expected to receive a string.



Quellcode

function wp_kses_hook( $string, $allowed_html, $allowed_protocols ) {
	/**
	 * Filters content to be run through kses.
	 *
	 * @since 2.3.0
	 *
	 * @param string $string            Content to run through kses.
	 * @param array  $allowed_html      Allowed HTML elements.
	 * @param array  $allowed_protocols Allowed protocol in links.
	 */
	return apply_filters( 'pre_kses', $string, $allowed_html, $allowed_protocols );
}