WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about option_

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/option.php apply_filters 253 /**
* Filters the value of an existing option.
*
* The dynamic portion of the hook name, `$option`, refers to the option name.
*
* @since 1.5.0 As 'option_' . $setting
* @since 3.0.0
* @since 4.4.0 The `$option` parameter was added.
*
* @param mixed $value Value of the option. If stored serialized, it will be
* unserialized prior to being returned.
* @param string $option Option name.
*/
wp-includes/class-wp-customize-widgets.php apply_filters 2139 /**
* Pre-filters captured option values before retrieving.
*
* @since 3.9.0
*
* @param mixed $value Value to return instead of the option value.
* @return mixed Filtered option value.
*/

Hook Parameters

Parameter Type Name Description
mixed $value Value of the option. If stored serialized, it will be
string $option Option name.