/** * Get the favorites list */ private function getList() { $this->list = get_user_favorites_list($user_id = $this->data['user_id'], $site_id = $this->data['site_id'], $include_links = $this->data['includelinks'], $filters = null, $include_button = $this->data['includebuttons']); }
/** * Get the favorites list */ private function getList() { $this->list = get_user_favorites_list($user_id = $this->data['user_id'], $site_id = $this->data['site_id'], $include_links = $this->data['includelinks'], $filters = array('post_type' => $this->data['posttypes']), $include_button = $this->data['includebuttons']); }
/** * Echo HTML List of User Favorites * @param $user_id int, defaults to current user * @param $site_id int, defaults to current blog/site * @param $filters array of post types/taxonomies * @param $include_button boolean, whether to include the favorite button for each item * @return html */ function the_user_favorites_list($user_id = null, $site_id = null, $include_links = false, $filters = null, $include_button = false) { echo get_user_favorites_list($user_id, $site_id, $include_links, $filters, $include_button); }