Switch language

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




wp_pre_kses_less_than_callback [ WordPress Function ]

wp_pre_kses_less_than_callback ( $matches )
Parameters:
  • (array) $matches Populated by matches to preg_replace.
Uses:
Returns:
  • (string) The text returned after esc_html if needed.
Defined at:



Callback function used by preg_replace.

Source


<?php
function wp_pre_kses_less_than_callback$matches ) {
    if ( 
false === strpos($matches[0], '>') )
        return 
esc_html($matches[0]);
    return 
$matches[0];
}
?>

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