customize_value_{$id_base}

customize_value_{$id_base}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('customize_value_{$id_base}') is found 2 times:

  • /wp-includes/class-wp-customize-setting.php line 768
    			 *
    			 * @param mixed                $default_value The setting default value. Default empty.
    			 * @param WP_Customize_Setting $setting       The setting instance.
    			 */
    			$value = apply_filters( "customize_value_{$id_base}", $value, $this );
    		} elseif ( $this->is_multidimensional_aggregated ) {
    			$root_value = self::$aggregated_multidimensionals[ $this->type ][ $id_base ]['root_value'];
    			$value      = $this->multidimensional_get( $root_value, $this->id_data['keys'], $this->default );
    
    			// Ensure that the post value is used if the setting is previewed, since preview filters aren't applying on cached $root_value.
    			if ( $this->is_previewed ) {
    
  • /wp-includes/customize/class-wp-customize-custom-css-setting.php line 142
    			$value = $this->default;
    		}
    
    		/** This filter is documented in wp-includes/class-wp-customize-setting.php */
    		$value = apply_filters( "customize_value_{$id_base}", $value, $this );
    
    		return $value;
    	}
    
    	/**
    	 * Validate a received value for being valid CSS.