/**
  * Constructor.
  *
  * @access public
  * @since  8.3
  *
  * @uses   cnTerm::getBy()
  *
  * @see    WP_List_Table::__construct() for more information on default arguments.
  *
  * @param array $args An associative array of arguments.
  */
 public function __construct($args = array())
 {
     $defaults = array('type' => '');
     $args = wp_parse_args($args, $defaults);
     $this->type = $args['type'];
     parent::__construct(array('plural' => 'email', 'singular' => 'email', 'ajax' => FALSE));
 }
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We 
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     $this->_sendpress = new SendPress();
     //Set parent defaults
     parent::__construct(array('singular' => 'qemail', 'plural' => 'qemails', 'ajax' => false));
 }
 function __construct()
 {
     global $status, $page;
     $this->example_data = PROFILEPRESS_sql::sql_wp_list_table_registration_builder();
     parent::__construct(array('singular' => __('registration', 'profilepress'), 'plural' => __('registrations', 'profilepress'), 'ajax' => false));
     add_action('admin_head', array(&$this, 'admin_header'));
 }
 /**
  * Get things started
  *
  * @since 1.1
  * @see   WP_List_Table::__construct()
  */
 public function __construct()
 {
     global $status, $page;
     // Set parent defaults
     parent::__construct(array('singular' => __('API Key', 'give'), 'plural' => __('API Keys', 'give'), 'ajax' => false));
     $this->query();
 }
 /**
  * Get things started
  *
  * @since 1.4
  * @see WP_List_Table::__construct()
  */
 public function __construct()
 {
     global $status, $page;
     // Set parent defaults
     parent::__construct(array('singular' => edd_get_label_singular(), 'plural' => edd_get_label_plural(), 'ajax' => false));
     add_action('edd_log_view_actions', array($this, 'downloads_filter'));
 }
Example #6
0
 /**
  * Primary class constructor.
  *
  * @since 2.0.0
  */
 public function __construct()
 {
     // Bring globals into scope for parent.
     global $status, $page;
     // Allow compat fields to be whitelisted.
     $this->compat_fields = array_merge($this->compat_fields, array('base', 'optin_id', 'optin', 'meta', 'total', 'base_url'));
     $this->compat_methods = array_merge($this->compat_methods, array('optins_data', 'get_settings_actions'));
     // Load the base class object.
     $this->base = Optin_Monster::get_instance();
     // Set the optin ID, object and meta properties.
     $this->optin_id = isset($_GET['om_optin_id']) ? $_GET['om_optin_id'] : $_POST['id'];
     $this->optin = get_post($this->optin_id);
     $this->meta = get_post_meta($this->optin_id, '_om_meta', true);
     // Utilize the parent constructor to build the main class properties.
     parent::__construct(array('singular' => 'optin', 'plural' => 'optins', 'ajax' => false));
     // Set some of the class properties.
     $this->total = $this->base->get_split_tests($this->optin_id) ? count($this->base->get_split_tests($this->optin_id)) : 0;
     $this->base_url = add_query_arg('page', 'optin-monster-settings', admin_url('admin.php'));
     // Process any bulk actions.
     $this->process_bulk_actions();
     // Load the track datastore interface.
     if (!class_exists('Optin_Monster_Track_Datastore')) {
         require plugin_dir_path($this->base->file) . 'includes/global/track-datastore.php';
     }
 }
Example #7
0
 /**
  * Constructor, we override the parent to pass our own arguments
  * We usually focus on three parameters: singular and plural labels, as well as whether the class supports AJAX.
  *
  * @param CUAR_Plugin $plugin
  * @param array       $args
  * @param             $base_url
  * @param string      $item_wrapper_class Class to wrap the WP_Post objects (leave empty to use only WP_Post)
  */
 public function __construct($plugin, $args, $base_url, $item_wrapper_class = '')
 {
     parent::__construct($args);
     $this->plugin = $plugin;
     $this->base_url = $base_url;
     $this->item_wrapper_class = $item_wrapper_class;
 }
 /**
  * Create and instance of this list table.
  *
  * @since 1.0
  */
 public function __construct()
 {
     parent::__construct(array('singular' => 'subscription', 'plural' => 'subscriptions', 'ajax' => false));
     $this->process_actions();
     // Check if the table caused a fatal error and if so, set flags to disable certain features
     add_action('shutdown', array(&$this, 'handle_fatal_errors'));
 }
 public function __construct($args)
 {
     parent::__construct(array('screen' => 'fw-ext-update-extensions-update'));
     $this->_extensions = $args['extensions'];
     $this->_table_columns = array('cb' => '<input type="checkbox" />', 'details' => fw_html_tag('a', array('href' => '#', 'onclick' => "jQuery(this).closest('tr').find('input[type=\"checkbox\"]:first').trigger('click'); return false;"), __('Select All', 'fw')));
     $this->_table_columns_count = count($this->_table_columns);
 }
 /**
  * The constructor function for our class.
  * Adds hooks, initializes variables, setups class.
  */
 function __construct()
 {
     global $status, $page;
     $screen = get_current_screen();
     /* Determine the status */
     $status = 'all';
     $statuses = array('active', 'inactive', 'recently_activated', 'admin', 'frontend');
     if (isset($_REQUEST['status']) && in_array($_REQUEST['status'], $statuses)) {
         $status = $_REQUEST['status'];
     }
     /* Add the search query to the URL */
     if (isset($_REQUEST['s'])) {
         $_SERVER['REQUEST_URI'] = add_query_arg('s', stripslashes($_REQUEST['s']));
     }
     /* Add a snippets per page screen option */
     $page = $this->get_pagenum();
     add_screen_option('per_page', array('label' => __('Snippets per page', 'code-snippets'), 'default' => 10, 'option' => 'snippets_per_page'));
     /* Set the table columns hidden in Screen Options by default */
     add_filter("get_user_option_manage{$screen->id}columnshidden", array($this, 'get_default_hidden_columns'), 15);
     /* Strip once-off query args from the URL */
     $_SERVER['REQUEST_URI'] = remove_query_arg(array('activate', 'activate-multi', 'deactivate', 'deactivate-multi', 'delete', 'delete-multi'));
     /* Add filters to format the snippet description in the same way the post content is formatted */
     $filters = array('wptexturize', 'convert_smilies', 'convert_chars', 'wpautop', 'shortcode_unautop', 'capital_P_dangit');
     foreach ($filters as $filter) {
         add_filter('code_snippets/list_table/print_snippet_description', $filter);
     }
     /* Setup the class */
     parent::__construct(array('singular' => 'snippet', 'plural' => 'snippets', 'ajax' => true));
 }
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'notification', 'plural' => 'notifications', 'ajax' => false));
     $this->form_id = isset($_REQUEST['form_id']) ? absint($_REQUEST['form_id']) : '';
 }
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We 
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     global $wpdb;
     //Set parent defaults
     parent::__construct(array('singular' => 'user', 'plural' => 'users', 'ajax' => false));
 }
 /**
  * Get things started
  *
  * @access      private
  * @since       1.0
  * @return      void
  */
 function __construct()
 {
     global $status, $page;
     // Set parent defaults
     parent::__construct(array('singular' => __('Subscriber', 'edd-recurring'), 'plural' => __('Subscribers', 'edd-recurring'), 'ajax' => false));
     $this->subscribers = $this->query();
 }
Example #14
0
 /**
  * @param string $field_group
  * @param string $post_type
  * @param string $table_title
  */
 function __construct($field_group, $post_type, $table_title = NULL)
 {
     global $status, $page;
     if ($field_group == 'resume') {
         $field_group = 'resume_fields';
     }
     $this->set_field_group($field_group);
     $this->set_post_type($post_type);
     $this->set_field_group_slug($this->fields()->get_field_group_slug($field_group));
     $this->set_field_group_slug_parent($this->fields()->get_field_group_slug($field_group, TRUE));
     $stripped_slug = $this->fields()->get_field_group_stripped_slug($field_group);
     $edit_page = 'edit_' . $stripped_slug . '_fields';
     $this->set_page($edit_page);
     $this->set_fields_page('edit.php?post_type=' . $post_type . '&page=' . $edit_page);
     $this->set_table_title(ucfirst($stripped_slug) . __(' Field', 'wp-job-manager-field-editor'));
     if ($table_title) {
         $this->set_table_title($table_title);
     }
     if (!$post_type) {
         $this->set_post_type($this->fields()->field_group_to_post_type($field_group));
     }
     ob_start();
     parent::__construct(array('singular' => $this->get_table_title(TRUE), 'plural' => $this->get_table_title(), 'ajax' => true, 'screen' => ''));
     ob_end_clean();
     // Prevent PHP warnings from being output when WP_DEBUG is enabled
 }
 function __construct()
 {
     if (!empty($_REQUEST['s'])) {
         $this->is_search = true;
     }
     parent::__construct(array('plural' => __('Co-Authors', 'co-authors-plus'), 'singular' => __('Co-Author', 'co-authors-plus')));
 }
 function __construct()
 {
     parent::__construct();
     Jetpack::init();
     // In WP 4.2 WP_List_Table will be sanitizing which values are __set()
     global $wp_version;
     if (version_compare($wp_version, '4.2-z', '>=') && $this->compat_fields && is_array($this->compat_fields)) {
         array_push($this->compat_fields, 'all_items');
     }
     $this->items = $this->all_items = Jetpack_Admin::init()->get_modules();
     $this->items = $this->filter_displayed_table_items($this->items);
     /**
      * Filters the list of modules available to be displayed in the Jetpack Settings screen.
      *
      * @since 3.0.0
      *
      * @param array $this->items Array of Jetpack modules.
      */
     $this->items = apply_filters('jetpack_modules_list_table_items', $this->items);
     $this->_column_headers = array($this->get_columns(), array(), array(), 'name');
     $modal_info = isset($_GET['info']) ? $_GET['info'] : false;
     wp_register_script('models.jetpack-modules', plugins_url('_inc/jetpack-modules.models.js', JETPACK__PLUGIN_FILE), array('backbone', 'underscore'), JETPACK__VERSION);
     wp_register_script('views.jetpack-modules', plugins_url('_inc/jetpack-modules.views.js', JETPACK__PLUGIN_FILE), array('backbone', 'underscore', 'wp-util'), JETPACK__VERSION);
     wp_register_script('jetpack-modules-list-table', plugins_url('_inc/jetpack-modules.js', JETPACK__PLUGIN_FILE), array('views.jetpack-modules', 'models.jetpack-modules', 'jquery'), JETPACK__VERSION, true);
     wp_localize_script('jetpack-modules-list-table', 'jetpackModulesData', array('modules' => Jetpack::get_translated_modules($this->all_items), 'i18n' => array('search_placeholder' => __('Search Modules…', 'jetpack')), 'modalinfo' => $this->module_info_check($modal_info, $this->all_items), 'nonces' => array('bulk' => wp_create_nonce('bulk-jetpack_page_jetpack_modules')), 'coreIconAvailable' => Jetpack::jetpack_site_icon_available_in_core()));
     wp_enqueue_script('jetpack-modules-list-table');
     /**
      * Filters the js_templates callback value.
      *
      * @since 3.6.0
      *
      * @param array array( $this, 'js_templates' ) js_templates callback.
      */
     add_action('admin_footer', apply_filters('jetpack_modules_list_table_js_template_callback', array($this, 'js_templates')), 9);
 }
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'payment button', 'plural' => 'payment buttons', 'ajax' => false));
     $this->per_page = 50;
 }
 function __construct($args = array())
 {
     global $status, $page;
     $args = wp_parse_args($args, array('plural' => __('accounts', 'support_hub'), 'singular' => __('account', 'support_hub'), 'ajax' => false));
     parent::__construct($args);
     $this->set_columns(array('account' => __('Account', 'support_hub'), 'last_checked' => __('Last Checked', 'support_hub')));
 }
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'custom taxonomy', 'plural' => 'custom taxonomies', 'ajax' => true));
     $this->custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
 }
 /**
  * Construct
  */
 public function __construct()
 {
     global $YWAR_AdvancedReview;
     $this->ywar = $YWAR_AdvancedReview;
     //Set parent defaults
     parent::__construct(array('singular' => 'review', 'plural' => 'reviews', 'ajax' => false));
 }
 public function __construct()
 {
     $this->load_dependencies();
     $this->db = WPSM_DB_Table::get_instance();
     global $status, $page;
     parent::__construct(array('singular' => 'table', 'plural' => 'tables', 'ajax' => false, 'screen' => $_REQUEST['page']));
 }
 /**
  * __construct function.
  * 
  * @access public
  */
 function __construct()
 {
     global $status, $page;
     $this->index = 0;
     //Set parent defaults
     parent::__construct(array('singular' => 'licence key', 'plural' => 'licence keys', 'ajax' => false));
 }
Example #23
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct(array('plural' => 'logs', 'singular' => 'log', 'ajax' => TRUE));
     $this->log_folder = get_site_option('backwpup_cfg_logfolder');
     $this->log_folder = BackWPup_File::get_absolute_path($this->log_folder);
     $this->log_folder = untrailingslashit($this->log_folder);
 }
Example #24
0
 function __construct($args)
 {
     parent::__construct(array('plural' => 'Strings translations', 'ajax' => false));
     $this->languages = $args['languages'];
     $this->groups = $args['groups'];
     $this->group_selected = $args['selected'];
 }
 /**
  * Construct the parent class.
  * @access public
  */
 public function load()
 {
     global $status, $page;
     parent::__construct(array('singular' => 'repository', 'plural' => 'repositories'));
     add_screen_option('per_page', array('default' => 10, 'label' => __('Repositories per page', 'revisr'), 'option' => 'edit_revisr_repositories_per_page'));
     set_screen_options();
 }
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'Log', 'plural' => 'Logs', 'ajax' => true));
     $this->check_table_filters();
 }
Example #27
0
 function __construct($string_actions)
 {
     parent::__construct(array('plural' => 'lingotek-strings-translations', 'ajax' => false));
     $this->pllm = $GLOBALS['polylang']->model;
     $this->lgtm = $GLOBALS['wp_lingotek']->model;
     $this->string_actions = $string_actions;
 }
Example #28
0
 function __construct()
 {
     global $status, $page, $wpdb, $table_prefix;
     //Set parent defaults
     parent::__construct(array('singular' => 'ID', 'plural' => 'ID', 'ajax' => false));
     $this->data = $wpdb->get_results("SELECT * FROM `{$table_prefix}sms_send`", ARRAY_A);
 }
 /**
  * Construct the parent class.
  * @access public
  */
 public function load()
 {
     global $status, $page;
     parent::__construct(array('singular' => 'activity', 'plural' => 'activity', 'ajax' => true));
     add_screen_option('per_page', array('default' => 15, 'label' => __('Events per page', 'revisr'), 'option' => 'edit_revisr_events_per_page'));
     set_screen_options();
 }
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'custom post type', 'plural' => 'custom post types', 'ajax' => true));
     $this->custom_types = get_option('wpcf-custom-types', array());
 }