Beispiel #1
0
/**
 * Retrieves the reports collection authored by a specific user
 *
 * @param int $user_id The reporter user ID
 * @param array	$args (optional) WP_Comment_Query args to be used to fetch the report collection
 *
 * @return object The user authored reports collection
 */
function appthemes_get_user_authored_reports($user_id, $args = array())
{
    $args = array('user_id' => $user_id, 'meta_key' => '', 'meta_value' => '');
    return APP_Report_Factory::get_user_reports($user_id, $args);
}