WP_Term::__construct()
Constructor.
Method of the class: WP_Term{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Term = new WP_Term(); $WP_Term->__construct( $term );
- $term(WP_Term|object) (required)
- Term object.
Changelog
Since 4.4.0 | Introduced. |
WP_Term::__construct() WP Term:: construct code WP 6.5.2
public function __construct( $term ) { foreach ( get_object_vars( $term ) as $key => $value ) { $this->$key = $value; } }