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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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