WP_Customize_Manager::_save_starter_content_changeset()publicWP 4.7.0

Saves starter content changeset.

{} Это метод класса: WP_Customize_Manager{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->_save_starter_content_changeset();

Список изменений

С версии 4.7.0 Введена.

Код WP_Customize_Manager::_save_starter_content_changeset() WP 6.0.2

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();
}