public function donation_orders_page() { global $wpdb; define('WC_QD_QRY_OVERRIDE', true); $order_ids = WC_QD()->db()->get_donation_order_ids(); $order_ids = WC_QD()->db()->extract_donation_id($order_ids); if (empty($order_ids)) { $order_ids[] = 0; } $args = array('posts_per_page' => '0', 'post_type' => 'shop_order', 'post_status' => array_keys(wc_get_order_statuses()), 'post__in' => $order_ids); if (isset($_GET['paged'])) { $args['paged'] = $_GET['paged']; } if (isset($_GET['m'])) { $args['m'] = $_GET['m']; } if (isset($_GET['_customer_user'])) { $args['meta_query'][]['key'] = '_customer_user'; $args['meta_query'][]['value'] = $_GET['_customer_user']; $args['meta_query'][]['compare'] = '='; } if (isset($_GET['dproj'])) { $args['meta_query'][]['key'] = '_project_details'; $args['meta_query'][]['value'] = $_GET['dproj']; $args['meta_query'][]['compare'] = '='; } if (isset($_GET['post_status'])) { $args['post_status'] = $_GET['post_status']; } $wp_query = new WP_Query($args); tt_render_list_page($wp_query); }
public static function showList() { require_once PLUGINPATH . '/view/integracoes/list.php'; $integracoes = Integracoes::getInstance()->getAll(); tt_render_list_page($integracoes, "Integrações"); }