W3cubDocs

/WordPress

apply_filters( "sanitize_option_{$option}", string $value, string $option, string $original_value )

Filters an option value following sanitization.

Parameters

$value

(string) The sanitized option value.

$option

(string) The option name.

$original_value

(string) The original value passed to the function.

Source

File: wp-includes/formatting.php

View on Trac

Changelog

Version Description
4.3.0 Added the $original_value parameter.
2.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/sanitize_option_option