\StreamManagerUtilities

Summary

Methods
Properties
Constants
parse_terms()
build_tax_query()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

parse_terms()

parse_terms(string  $taxonomy, string  $terms, boolean  $return_objects = false) : array

Convert comma-separated list of terms to term IDs

Parameters

string $taxonomy

taxonomy slug (category, post_tag, etc.)

string $terms

comma-separated list of term slugs

boolean $return_objects

return term objects if true, IDs if false

Returns

array —

array of term IDs

build_tax_query()

build_tax_query(  $taxonomies) 

Parameters

$taxonomies