Inventory_Presser_Taxonomies::get_term_slug( string $taxonomy_name, int $post_id )

Given taxonomy and post ID, find the term with a relationship to the post and return its slug.


Parameters Parameters

$taxonomy_name

(Required) A taxonomy name

$post_id

(Required) A Post ID


Top ↑

Return Return

(string) A term slug


Top ↑

Source Source

File: includes/class-taxonomies.php