WordPress at a glance
function is not described

WP_Term::__construct() public WP 4.4.0

Constructor.

It's a method of the class: WP_Term{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_Term = new WP_Term();
$WP_Term->__construct( $term );
$term(WP_Term/object) (required)
Term object.

Changelog

Since 4.4.0 Introduced.

Code of WP_Term::__construct() WP 5.5.1

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