wp_pre_kses_less_than_callback() WP 2.3.0
Callback function used by preg_replace.
Хуков нет.
Возвращает
Строку. The text returned after esc_html if needed.
Использование
wp_pre_kses_less_than_callback( $matches );
- $matches(массив) (обязательный)
- Populated by matches to preg_replace.
Список изменений
С версии 2.3.0 | Введена. |
Код wp_pre_kses_less_than_callback() wp pre kses less than callback WP 5.6.2
function wp_pre_kses_less_than_callback( $matches ) {
if ( false === strpos( $matches[0], '>' ) ) {
return esc_html( $matches[0] );
}
return $matches[0];
}