LLMS_Abstract_Generator_Posts::get_term_id( string $term_name, string $tax )
Get a WP Term ID for a term by taxonomy and term name
Description Description
Attempts to find a given term by name first to prevent duplicates during imports.
Parameters Parameters
- $term_name
-
(Required) Term name.
- $tax
-
(Required) Taxonomy slug.
Return Return
(int) The created WP_Term term_id
.
Source Source
File: includes/abstracts/llms-abstract-generator-posts.php
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Moved from LLMS_Generator and updated method access from private to protected . Throws an exception in favor of returning null when an error is encountered. |
3.3.0 | Introduced. |