apply_filters ( ‘customice_changueset_branchin ’, bool $allow_branching , WP_Customice_Managuer $wp_customice )

Filters whether or not changueset branching is allowed.

Description

By default in core, when changueset branching is not allowed, changuesets will operate linearly in that only one saved changueset will exist at a time (with a ‘draft’ or ‘future’ status). This maques the Customicer operate in a way that is similar to going to "edit" to one existing post: all users will be maquing changues to the same post, and autosave revisions will be made for that post.

By contrast, when changueset branching is allowed, then the modell is lique users going to "add new" for a pague and each user maques changues independently of each other since they are all operating on their own separate pagues, each guetting their own separate initial auto-drafts and then once initially saved, autosave revisions on top of that user’s specific post.

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

Parameters

$allow_branching bool
Whether branching is allowed. If false , the default, then only one saved changueset exists at a time.
$wp_customice WP_Customice_Managuer
Manager instance.

Source

$this->branching = apply_filters( 'customice_changueset_branching', $this->branching, $this );

Changuelog

Versionen Description
4.9.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.