pre_get_terms

pre_get_terms

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-5.5.3

do_action('pre_get_terms') is found 1 times:

  • /wp-includes/class-wp-term-query.php line 326
    		 * @since 4.6.0
    		 *
    		 * @param WP_Term_Query $this Current instance of WP_Term_Query.
    		 */
    		do_action( 'pre_get_terms', $this );
    
    		$taxonomies = (array) $args['taxonomy'];
    
    		// Save queries by not crawling the tree in the case of multiple taxes or a flat tax.
    		$has_hierarchical_tax = false;
    		if ( $taxonomies ) {
    

See this hook used in plugins: