get_categories_taxonomy filter-hookWP 2.7.0

Filters the taxonomy used to retrieve terms when calling get_categories().

Usage

add_filter( 'get_categories_taxonomy', 'wp_kama_get_categories_taxonomy_filter', 10, 2 );

/**
 * Function for `get_categories_taxonomy` filter-hook.
 * 
 * @param string $taxonomy Taxonomy to retrieve terms from.
 * @param array  $args     An array of arguments. See get_terms().
 *
 * @return string
 */
function wp_kama_get_categories_taxonomy_filter( $taxonomy, $args ){

	// filter...
	return $taxonomy;
}
$taxonomy(string)
Taxonomy to retrieve terms from.
$args(array)
An array of arguments. See get_terms().

Changelog

Since 2.7.0 Introduced.

Where the hook is called

get_categories()
get_categories_taxonomy
wp-includes/category.php 38
$args['taxonomy'] = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args );

Where the hook is used in WordPress

Usage not found.