Astra_Customizer::customize_save()
Called by the customize_save_after action to refresh the cached CSS when Customizer settings are saved.
Description
Return
(void)
Source
File: inc/customizer/class-astra-customizer.php
public function customize_save() { // Update variables. Astra_Theme_Options::refresh(); if ( apply_filters( 'astra_resize_logo', true ) ) { /* Generate Header Logo */ $custom_logo_id = get_theme_mod( 'custom_logo' ); add_filter( 'intermediate_image_sizes_advanced', 'Astra_Customizer::logo_image_sizes', 10, 2 ); self::generate_logo_by_width( $custom_logo_id ); remove_filter( 'intermediate_image_sizes_advanced', 'Astra_Customizer::logo_image_sizes', 10 ); } else { // Regenerate the logo without custom image sizes. $custom_logo_id = get_theme_mod( 'custom_logo' ); self::generate_logo_by_width( $custom_logo_id ); } do_action( 'astra_customizer_save' ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |