Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_kses_hook [ WordPress Function ]

wp_kses_hook ( $string, $allowed_html, $allowed_protocols )
Parameters:
  • (string) $string Content to filter through kses
  • (array) $allowed_html List of allowed HTML elements
  • (array) $allowed_protocols Allowed protocol in links
Returns:
  • (string) Filtered content through 'pre_kses' hook
Defined at:



You add any kses hooks here.

There is currently only one kses WordPress hook and it is called here. All parameters are passed to the hooks and expected to receive a string.

Source


<?php
function wp_kses_hook($string$allowed_html$allowed_protocols) {
    
$string apply_filters('pre_kses'$string$allowed_html$allowed_protocols);
    return 
$string;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics