Home > AI > Uncategorized

get_term

get_term( int|WP_Term|object $term, string $taxonomy = '', string $output = OBJECT, string $filter = 'raw' )


Example 1:

$term = get_term( $term_id, $taxonomy );

$slug = $term->slug;

$name = $term->name;

$desc = $term->description;
Related posts:

Leave a Reply