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 |
---|---|
742 | * For settings handled as theme_mods or options, see those corresponding |
743 | * functions for available hooks. |
744 | * |
745 | * @since 3.4.0 |
746 | * @since 4.6.0 Added the `$this` setting instance as the second parameter. |
747 | * |
748 | * @param mixed $default The setting default value. Default empty. |
749 | * @param WP_Customize_Setting $this The setting instance. |
750 | */ |
751 | $value = apply_filters( "customize_value_{$id_base}", $value, $this ); |
752 | } elseif ( $this->is_multidimensional_aggregated ) { |
753 | $root_value = self::$aggregated_multidimensionals[ $this->type ][ $id_base ]['root_value']; |
754 | $value = $this->multidimensional_get( $root_value, $this->id_data['keys'], $this->default ); |
755 |
|
756 | // Ensure that the post value is used if the setting is previewed, since preview filters aren't applying on cached $root_value. |
757 | if ( $this->is_previewed ) { |
758 | $value = $this->post_value( $value ); |
759 | } |
760 | } else { |