WP_Term::__construct( WP_Term|object $term )

Constructor.


Parameters Parameters

$term

(WP_Term|object) (Required) Term object.


Top ↑

Source Source

File: wp-includes/class-wp-term.php

	public function __construct( $term ) {
		foreach ( get_object_vars( $term ) as $key => $value ) {
			$this->$key = $value;
		}
	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.