Used By
| Used By | Description |
|---|---|
| wp-includes/class-wp-term.php: WP_Term::get_instance() | Retrieve WP_Term instance. |
| wp-includes/taxonomy.php: get_term() | Get all Term data from database by Term ID. |
Constructor.
(WP_Term|object) (Required) Term object.
File: wp-includes/class-wp-term.php
public function __construct( $term ) {
foreach ( get_object_vars( $term ) as $key => $value ) {
$this->$key = $value;
}
} | Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_term/__construct