Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Generator::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
-
(string) (Required) Term name.
- $tax
-
(string) (Required) Taxonomy slug.
Return Return
(int|void)
Source Source
File: includes/class.llms.generator.php
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |