customize_changeset_save_data

customize_changeset_save_data

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('customize_changeset_save_data') is found 1 times:

  • /wp-includes/class-wp-customize-manager.php line 2899
    		 *     @type array                $previous_data Previous data contained in the changeset.
    		 *     @type WP_Customize_Manager $manager       Manager instance.
    		 * }
    		 */
    		$data = apply_filters( 'customize_changeset_save_data', $data, $filter_context );
    
    		// Switch theme if publishing changes now.
    		if ( 'publish' === $args['status'] && ! $this->is_theme_active() ) {
    			// Temporarily stop previewing the theme to allow switch_themes() to operate properly.
    			$this->stop_previewing_theme();
    			switch_theme( $this->get_stylesheet() );