customize_value_{$id_base}
Filter HookDescription
Fetch the value of the setting. Will return the previewed value when `preview()` is called.Hook Information
File Location |
wp-includes/customize/class-wp-customize-custom-css-setting.php
View on GitHub
|
Hook Type | Filter |
Line Number | 142 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into customize_value_{$id_base}
add_filter('customize_value_{$id_base}', 'my_custom_filter');
function my_custom_filter() {
// Your custom filtering logic here
return 'modified_value';
}
Source Code Context
wp-includes/customize/class-wp-customize-custom-css-setting.php:142
- How this hook is used in WordPress core
<?php
137 if ( empty( $value ) ) {
138 $value = $this->default;
139 }
140
141 /** This filter is documented in wp-includes/class-wp-customize-setting.php */
142 $value = apply_filters( "customize_value_{$id_base}", $value, $this );
143
144 return $value;
145 }
146
147 /**
PHP Documentation
<?php
/**
* Fetch the value of the setting. Will return the previewed value when `preview()` is called.
*
* @since 4.7.0
*
* @see WP_Customize_Setting::value()
*
* @return string
*/
Quick Info
- Hook Type: Filter
- Parameters: 0
- File: wp-includes/customize/class-wp-customize-custom-css-setting.php
Related Hooks
Related hooks will be displayed here in future updates.