WP_Term::__construct

Advertisement

Summery Summery

Constructor.

Syntax Syntax

WP_Term::__construct( WP_Term|object $term )

Parameters Parameters

$term

(WP_Term|object) (Required) Term object.

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.