PostTypeCategory
Tags
Table of Contents
- getCategory() : string
- getCategoryLink() : string
- registerCategory() : mixed
Methods
getCategory()
public
getCategory() : string
Tags
Return values
string —getCategoryLink()
public
getCategoryLink(WP_Term|int|string $term) : string
Parameters
- $term : WP_Term|int|string
-
The term object, ID, or slug whose link will be retrieved.
Tags
Return values
string —Link on success, empty string if category does not exist.
registerCategory()
public
registerCategory() : mixed