get_terms_defaults

get_terms_defaults

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('get_terms_defaults') is found 1 times:

  • /wp-includes/class-wp-term-query.php line 260
    		 *
    		 * @param array    $defaults   An array of default get_terms() arguments.
    		 * @param string[] $taxonomies An array of taxonomy names.
    		 */
    		$this->query_var_defaults = apply_filters( 'get_terms_defaults', $this->query_var_defaults, $taxonomies );
    
    		$query = wp_parse_args( $query, $this->query_var_defaults );
    
    		$query['number'] = absint( $query['number'] );
    		$query['offset'] = absint( $query['offset'] );
    
    

See this hook used in plugins: