pre_get_terms action-hookWP 4.6.0

Fires before terms are retrieved.

Usage

add_action( 'pre_get_terms', 'wp_kama_pre_get_terms_action' );

/**
 * Function for `pre_get_terms` action-hook.
 * 
 * @param WP_Term_Query $query Current instance of WP_Term_Query (passed by reference).
 *
 * @return void
 */
function wp_kama_pre_get_terms_action( $query ){

	// action...
}
$query(WP_Term_Query)
Current instance of WP_Term_Query (passed by reference).

Changelog

Since 4.6.0 Introduced.

Where the hook is called

WP_Term_Query::get_terms()
pre_get_terms
wp-includes/class-wp-term-query.php 368
do_action_ref_array( 'pre_get_terms', array( &$this ) );

Where the hook is used in WordPress

Usage not found.