Title: wp_is_collaboration_allowed
Published: May 20, 2026

---

# wp_is_collaboration_allowed(): bool

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#description)
 * [Return](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#wp--skip-link--target)

Determines whether real-time collaboration is allowed.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#description)󠁿

If the WP_ALLOW_COLLABORATION constant is false, collaboration is not allowed and
cannot be enabled.
The constant defaults to true, unless the WP_ALLOW_COLLABORATION
environment variable is set to string “false”.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#return)󠁿

 bool Whether real-time collaboration is enabled.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#source)󠁿

    ```php
    function wp_is_collaboration_allowed() {
    	if ( ! defined( 'WP_ALLOW_COLLABORATION' ) ) {
    		$env_value = getenv( 'WP_ALLOW_COLLABORATION' );
    		if ( false === $env_value ) {
    			// Environment variable is not defined, default to allowing collaboration.
    			define( 'WP_ALLOW_COLLABORATION', true );
    		} else {
    			/*
    			 * Environment variable is defined, let's confirm it is actually set to
    			 * "true" as it may still have a string value "false" – the preceeding
    			 * `if` branch only tests for the boolean `false`.
    			 */
    			define( 'WP_ALLOW_COLLABORATION', 'true' === $env_value );
    		}
    	}

    	return WP_ALLOW_COLLABORATION;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/collaboration.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/collaboration.php#L39)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/collaboration.php#L39-L56)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_is_collaboration_enabled()](https://developer.wordpress.org/reference/functions/wp_is_collaboration_enabled/)`wp-includes/collaboration.php` |

Determines whether real-time collaboration is enabled.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_is_collaboration_allowed/?output_format=md#changelog)󠁿

| Version | Description | 
| [7.0.0](https://developer.wordpress.org/reference/since/7.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_is_collaboration_allowed%2F)
before being able to contribute a note or feedback.