Advertisements

global_terms_enabled

Definition:
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;

		else

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

	}

	return $global_terms;

}

1917

Advertisements

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:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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: