WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about customize_sanitize_

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-customize-setting.php apply_filters 576 /**
* Filters a Customize setting value in un-slashed form.
*
* @since 3.4.0
*
* @param mixed $value Value of the setting.
* @param WP_Customize_Setting $setting WP_Customize_Setting instance.
*/
wp-includes/customize/class-wp-customize-nav-menu-item-setting.php apply_filters 741 /**
* Sanitize an input.
*
* Note that parent::sanitize() erroneously does wp_unslash() on $value, but
* we remove that in this override.
*
* @since 4.3.0
* @since 5.9.0 Renamed `$menu_item_value` to `$value` for PHP 8 named parameter support.
*
* @param array $value The menu item value to sanitize.
* @return array|false|null|WP_Error Null or WP_Error if an input isn't valid. False if it is marked for deletion.
* Otherwise the sanitized value.
*/
wp-includes/customize/class-wp-customize-nav-menu-setting.php apply_filters 444 /**
* Sanitize an input.
*
* Note that parent::sanitize() erroneously does wp_unslash() on $value, but
* we remove that in this override.
*
* @since 4.3.0
*
* @param array $value The menu value to sanitize.
* @return array|false|null Null if an input isn't valid. False if it is marked for deletion.
* Otherwise the sanitized value.
*/

Hook Parameters

Parameter Type Name Description
mixed $value Value of the setting.
WP_Customize_Setting $setting WP_Customize_Setting instance.