allusfi_get_query_params(); * * - All request parsing/sanitization is done in the class method. * - The template only escapes output for safe rendering. * * Place this file where your admin class includes it. */ if (!defined('ABSPATH')) { exit; } global $wp_roles, $pagenow; /* ------------------------- * Instantiate admin helper * ------------------------- */ $params = array( 'secure' => false, 'ordr_by' => '', 'usr_sort' => '', 'one_date' => '', 'cstm_dt' => '', 'relation' => 'nd', 'exclude_roles' => array(), 'excl_ids' => array(), 'multi_from_date' => array(), 'multi_to_date' => array(), 'meta_keys' => array(), 'meta_vals' => array(), 'meta_ops' => array(), 'meta_tp' => array(), // Relative-date meta filter rows. 'rel_date_keys' => array(), 'rel_date_vals' => array(), 'rel_date_tp' => array(), 'wc_order_enabled' => false, 'wc_order_count' => 0, 'wc_order_op' => '>', ); if (class_exists('ALLUSFI_Admin')) { $admin = new ALLUSFI_Admin(); $params = (array) $admin->allusfi_get_query_params(); } /* Roles for checkboxes */ $roles = (isset($wp_roles) && is_object($wp_roles)) ? $wp_roles->get_names() : array(); /* Simple compatible compares list for select options */ $allusfi_html_compatible_compares = array('=', '!=', 'IN', 'BETWEEN', 'LIKE', 'REGEXP', 'RLIKE', '>', '>=', '<', '<=', 'NOT EXISTS', 'NOT REGEXP'); ?>