WP_Customize_Manager::_save_starter_content_changeset() WordPress Method

The WP_Customize_Manager::_save_starter_content_changeset() method is used to save changes made to starter content in the WordPress Customizer. This method is called when the "Save & Publish" button is clicked in the Customizer.

WP_Customize_Manager::_save_starter_content_changeset() #

Saves starter content changeset.


Source

File: wp-includes/class-wp-customize-manager.php

1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
public function _save_starter_content_changeset() {
 
    if ( empty( $this->pending_starter_content_settings_ids ) ) {
        return;
    }
 
    $this->save_changeset_post(
        array(
            'data'            => array_fill_keys( $this->pending_starter_content_settings_ids, array( 'starter_content' => true ) ),
            'starter_content' => true,
        )
    );
    $this->saved_starter_content_changeset = true;
 
    $this->pending_starter_content_settings_ids = array();
}


Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by the Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More