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.


Top ↑

Return Return

(int) The created WP_Term term_id.


Top ↑

Source Source

File: includes/abstracts/llms-abstract-generator-posts.php


			

Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.