WP_Term::__construct( WP_Term|object $term )

In this article

Constructor.

Parameters

$termWP_Term|objectrequired
Term object.

Source

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

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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