wp_is_collaboration_enabled()
Determines whether real-time collaboration is enabled.
If the WP_ALLOW_COLLABORATION constant is false, collaboration is always disabled regardless of the database option. Otherwise, falls back to the 'wp_collaboration_enabled' option.
No Hooks.
Returns
true|false. Whether real-time collaboration is enabled.
Usage
wp_is_collaboration_enabled();
Changelog
| Since 7.0.0 | Introduced. |
wp_is_collaboration_enabled() wp is collaboration enabled code WP 7.0
function wp_is_collaboration_enabled() {
return (
wp_is_collaboration_allowed() &&
(bool) get_option( 'wp_collaboration_enabled' )
);
}