On this page
apply_filters( "option_{$option}", mixed $value, string $option )
Filters the value of an existing option.
Description
The dynamic portion of the hook name, $option, refers to the option name.
Parameters
$valuemixed-
Value of the option. If stored serialized, it will be unserialized prior to being returned.
$optionstring-
Option name.
More Information
This hook allows you to filter any option after database lookup.
Source
File: wp-includes/option.php. View all references
return apply_filters( "option_{$option}", maybe_unserialize( $value ), $option );
Related
Used By
| Used By | Description |
|---|---|
| get_option() wp-includes/option.php | Retrieves an option value based on an option name. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/option_option