global_terms_enabled WordPress Filter Hook

The global_terms_enabled hook is a useful tool for managing terms in a multisite environment. It allows you to programmatically enable or disable terms for all sites in a network. This can be useful for managing terms that are common to all sites in a network, or for managing terms that are specific to a single site.

apply_filters( 'global_terms_enabled', null $enabled ) #

Filters whether global terms are enabled.


Description

Returning a non-null value from the filter will effectively short-circuit the function and return the value of the ‘global_terms_enabled’ site option instead.


Top ↑

Parameters

$enabled

(null)Whether global terms are enabled.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More