/** * @param WP_User|object|null $user * @param array $args */ function __construct($user, $args = array()) { /* * Find the user if possible */ $this->_user = WPLib_Users::get_user($user); /* * Let our parent class capture whatever properties where passed in as $args */ parent::__construct($args); }
/** * @param WP_Post|object|null $post * @param array $args */ function __construct($post, $args = array()) { /* * Find the post if possible */ $this->_post = WPLib::get_post($post); /* * Let our parent class capture whatever properties where passed in as $args */ parent::__construct($args); }
/** * @param object|int|string|null $term * @param array $args * */ function __construct($term, $args = array()) { $this->_term = WPLib::get_term($term, static::item_taxonomy()); parent::__construct($args); }
/** * @param object|int|string|null $term * @param array $args * */ function __construct($term, $args = array()) { $this->_term = WPLib::get_term($term, $args); parent::__construct($args); }