[wp-trac] [WordPress Trac] #64904: Real time collboration: determine approach for opt in setting for users in Settings > Writing

WordPress Trac noreply at wordpress.org
Mon Mar 23 18:55:07 UTC 2026


#64904: Real time collboration: determine approach for opt in setting for users in
Settings > Writing
------------------------------------+---------------------
 Reporter:  annezazu                |       Owner:  (none)
     Type:  task (blessed)          |      Status:  new
 Priority:  normal                  |   Milestone:  7.0
Component:  General                 |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  needs-design has-patch  |     Focuses:  ui
------------------------------------+---------------------

Comment (by czarate):

 Replying to [comment:4 jorbin]:
 > I think the option is going to have the following states that we can
 detect (after the config flag has been added):
 >
 >
 > 1. Off by default with no additional changes (This is what is planned to
 be shipped)
 > 2. On by default by using the `default_option_wp_collaboration_enabled`
 filter.
 > 3. On by default by using the default_option_wp_collaboration_enabled
 filter.
 > 4. Off by choice
 > 5. On by choice
 > 6. Disabled by config flag (it isn't possible to know if the flag is set
 by the host or not)
 > 7. Enabled by config flag

 For clarity, here are the current possible states as coded now in `trunk`:

 1. Disabled by default (shipped state)
 2. Disabled in code by setting `WP_ALLOW_COLLABORATION` to `false`
 (supersedes all other controls)
 3. Enabled or disabled in code using the
 `pre_option_wp_collaboration_enabled` filter
 4. Enabled or disabled by admins using the Writing setting

 Note 1: It is not possible to use the
 `default_option_wp_collaboration_enabled` filter, because the option is
 set to `'0'` on install and upgrade (via `populate_options`):

 https://github.com/WordPress/wordpress-
 develop/blob/e40e13bc843c88f3a4696417feaa93963ef32cdb/src/wp-
 admin/includes/schema.php#L568

 Note 2: Using the `pre_option_wp_collaboration_enabled` filter means that
 changes attempted via Writing settings will be ignored. (The same would be
 true of all settings included in `populate_options`.)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64904#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list