WPDev.one
Core Class

WP_Term

class WP_Term // Constructor: function Object() { [native code] }

Core class used to implement the WP_Term object.

Methods 5 methods

Method / Return Description
get_instance()
(WP_Term

Retrieve WP_Term instance.

Parameters: $term_id: mixed, $taxonomy: mixed
__construct()
void

Constructor.

Parameters: $term: mixed
filter()
void

Sanitizes term fields, according to the filter type provided.

Parameters: $filter: mixed
to_array()
array

Converts an object to array.

__get()
mixed

Getter.

Parameters: $key: mixed

Properties

Property / Type Description
$term_id
mixed
public
No description available.
$name
mixed
public
No description available.
$slug
mixed
public
No description available.
$term_group
mixed
public
No description available.
$term_taxonomy_id
mixed
public
No description available.
$taxonomy
mixed
public
No description available.
$description
mixed
public
No description available.
$parent
mixed
public
No description available.
$count
mixed
public
No description available.
$filter
mixed
public
No description available.

Class Information

Since Version
4.4.0
Source File
wp-includes/class-wp-term.php
Advertisement