public __construct ( integer $tid = null, string $tax = '' ) | ||
$tid | integer | |
$tax | string |
public function __construct($tid = null, $tax = '')
{
if ($tid === null) {
$tid = $this->get_term_from_query();
}
if (strlen($tax)) {
$this->taxonomy = $tax;
}
$this->init($tid);
}