wp_cache_sanitize_value()
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wp_cache_sanitize_value( $text, $array );
- $text(обязательный)
- .
- $array(обязательный) (передается по ссылке — &)
- .
Код wp_cache_sanitize_value() wp cache sanitize value WPSCache 3.0.0
function wp_cache_sanitize_value($text, & $array) { $text = esc_html(strip_tags($text)); $array = preg_split( '/[\s,]+/', rtrim( $text ) ); $text = var_export($array, true); $text = preg_replace('/[\s]+/', ' ', $text); return $text; }