Yoast_Network_Settings_API::filter_sanitize_option()publicYoast 1.0

Filters sanitization for a network option value.

This method is added as a filter to sanitize_option_{$option} for network options that are registered with a sanitize callback.

Метод класса: Yoast_Network_Settings_API{}

Хуков нет.


Строку. The filtered sanitized option value.


$Yoast_Network_Settings_API = new Yoast_Network_Settings_API();
$Yoast_Network_Settings_API->filter_sanitize_option( $value, $option );
$value(строка) (обязательный)
The sanitized option value.
$option(строка) (обязательный)
The option name.

Код Yoast_Network_Settings_API::filter_sanitize_option() Yoast 22.0

public function filter_sanitize_option( $value, $option ) {

	if ( empty( $this->registered_settings[ $option ] ) ) {
		return $value;

	return call_user_func( $this->registered_settings[ $option ]['sanitize_callback'], $value );