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.
Parameters
- $enabled
(null)Whether global terms are enabled.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |