/** * Retrieve a list of post reports * * @param array $args (optional) WP_Comment_Query args to be used to fetch the reports * * @return array List of reports */ function appthemes_get_reports($args = array()) { return APP_Report_Factory::get_reports($args); }
/** * Retrieve the post reports collection * * @param type $args (optional) WP_Query args to be used to fetch the report collection * * @return array The reports collection */ protected function get_reports($args = array()) { $defaults = array('post_id' => $this->post_id); $args = wp_parse_args($args, $defaults); return APP_Report_Factory::get_reports($args); }