PostTypeCategory

Tags
since
1.2

Table of Contents

getCategory()  : string
getCategoryLink()  : string
registerCategory()  : mixed

Methods

getCategory()

public getCategory() : string
Tags
since
1.2
Return values
string
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
since
1.2
Return values
string

Link on success, empty string if category does not exist.

registerCategory()

public registerCategory() : mixed
Tags
access

protected

since
1.2
Return values
mixed

Search results