get_the_terms

get_the_terms

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('get_the_terms') is found 1 times:

  • /wp-includes/category-template.php line 1314
    	 * @param WP_Term[]|WP_Error $terms    Array of attached terms, or WP_Error on failure.
    	 * @param int                $post_id  Post ID.
    	 * @param string             $taxonomy Name of the taxonomy.
    	 */
    	$terms = apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy );
    
    	if ( empty( $terms ) ) {
    		return false;
    	}
    
    	return $terms;
    

See this hook used in plugins: