global_terms_enabled filter-hookWP 3.0.0

Filters whether global terms are enabled.

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

Usage

add_filter( 'global_terms_enabled', 'wp_kama_global_terms_enabled_filter' );

/**
 * Function for `global_terms_enabled` filter-hook.
 * 
 * @param null $enabled Whether global terms are enabled.
 *
 * @return null
 */
function wp_kama_global_terms_enabled_filter( $enabled ){

	// filter...
	return $enabled;
}
$enabled(null)
Whether global terms are enabled.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

global_terms_enabled()
global_terms_enabled
wp-includes/functions.php 6239
$filter = apply_filters( 'global_terms_enabled', null );

Where the hook is used in WordPress

Usage not found.