function global_terms_enabled() {}

Whether global terms are enabled.

Return values

returns:True if multisite and global terms enabled

Defined filters

  • global_terms_enabled
    apply_filters( 'global_terms_enabled', null )

Source code

function global_terms_enabled() {

	if ( ! is_multisite() )

		return false;

	static $global_terms = null;

	if ( is_null( $global_terms ) ) {

		$filter = apply_filters( 'global_terms_enabled', null );

		if ( ! is_null( $filter ) )

			$global_terms = (bool) $filter;


			$global_terms = (bool) get_site_option( 'global_terms_enabled', false );


	return $global_terms;



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: