GC_Customize_Manager::_save_starter_content_changeset()
最后更新于:2021-11-27 03:10:47
GC_Customize_Manager::_save_starter_content_changeset()Save starter content changeset.
源文件
文件: gc-includes/class-gc-customize-manager.php
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();
}