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