WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

customize_changeset_branching хук-фильтр . WP 4.9.0

Filters whether or not changeset branching is allowed.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

By default in core, when changeset branching is not allowed, changesets will operate linearly in that only one saved changeset will exist at a time (with a 'draft' or 'future' status). This makes the Customizer operate in a way that is similar to going to "edit" to one existing post: all users will be making changes to the same post, and autosave revisions will be made for that post.

By contrast, when changeset branching is allowed, then the model is like users going to "add new" for a page and each user makes changes independently of each other since they are all operating on their own separate pages, each getting their own separate initial auto-drafts and then once initially saved, autosave revisions on top of that user's specific post.

Since linear changesets are deemed to be more suitable for the majority of WordPress users, they are the default. For WordPress sites that have heavy site management in the Customizer by multiple users then branching changesets should be enabled by means of this filter.


add_filter( 'customize_changeset_branching', 'filter_function_name_6439', 10, 2 );
function filter_function_name_6439( $allow_branching, $wp_customize ){
	// filter...

	return $allow_branching;
Whether branching is allowed. If false, the default, then only one saved changeset exists at a time.
Manager instance.

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

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

Где вызывается хук

wp-includes/class-wp-customize-manager.php 799
$this->branching = apply_filters( 'customize_changeset_branching', $this->branching, $this );

Где используется хук в ядре WordPress

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