Yoast\WP\SEO\Helpers

Sanitization_Helper::sanitize_text_field()publicYoast 1.0

Emulate the WP native sanitize_text_field function in a %%variable%% safe way.

{} Это метод класса: Sanitization_Helper{}

Хуков нет.

Возвращает

Строку. The sanitized string.

Использование

$Sanitization_Helper = new Sanitization_Helper();
$Sanitization_Helper->sanitize_text_field( $value );
$value(строка) (обязательный)
String value to sanitize.

Код Sanitization_Helper::sanitize_text_field() Yoast 19.7.1

public function sanitize_text_field( $value ) {
	return WPSEO_Utils::sanitize_text_field( $value );
}