WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
758 | * For settings handled as theme_mods or options, see those corresponding |
759 | * functions for available hooks. |
760 | * |
761 | * @since 3.4.0 |
762 | * @since 4.6.0 Added the `$this` setting instance as the second parameter. |
763 | * |
764 | * @param mixed $default_value The setting default value. Default empty. |
765 | * @param WP_Customize_Setting $setting The setting instance. |
766 | */ |
767 | $value = apply_filters( "customize_value_{$id_base}", $value, $this ); |
768 | } elseif ( $this->is_multidimensional_aggregated ) { |
769 | $root_value = self::$aggregated_multidimensionals[ $this->type ][ $id_base ]['root_value']; |
770 | $value = $this->multidimensional_get( $root_value, $this->id_data['keys'], $this->default ); |
771 |
|
772 | // Ensure that the post value is used if the setting is previewed, since preview filters aren't applying on cached $root_value. |
773 | if ( $this->is_previewed ) { |
774 | $value = $this->post_value( $value ); |
775 | } |
776 | } else { |