function current_action() { if (isset($_REQUEST['action']) && isset($_REQUEST['delete_tags']) && ('delete' == $_REQUEST['action'] || 'delete' == $_REQUEST['action2'])) { return 'bulk-delete'; } return parent::current_action(); }
function current_action() { if (isset($_REQUEST['action']) && ('hide' == $_REQUEST['action'] || 'hide' == $_REQUEST['action2'])) { return 'bulk-hide'; } return parent::current_action(); }
function current_action() { if (isset($_REQUEST['changeit']) && !empty($_REQUEST['new_role'])) { return 'promote'; } return parent::current_action(); }
/** * * @return string */ public function current_action() { if (isset($_REQUEST['found_post_id']) && isset($_REQUEST['media'])) { return 'attach'; } if (isset($_REQUEST['parent_post_id']) && isset($_REQUEST['media'])) { return 'detach'; } if (isset($_REQUEST['delete_all']) || isset($_REQUEST['delete_all2'])) { return 'delete_all'; } return parent::current_action(); }
/** * Get the current action selected from the bulk actions dropdown, verifying * that it's a valid action to perform * * @see WP_List_Table::current_action() * @since 1.0 * @return string|bool The action name or False if no action was selected */ public function current_action() { $current_action = parent::current_action(); if ($current_action && !array_key_exists($current_action, $this->get_bulk_actions())) { return false; } return $current_action; }
function current_action() { return parent::current_action(); }
/** * Clear the recently activated snippets list if we've clicked the button * @return string The action to execute */ function current_action() { if (isset($_POST['clear-recent-list'])) { $action = 'clear-recent-list'; } else { $action = parent::current_action(); } return apply_filters('code_snippets/list_table/current_action', $action); }
/** * Render current trggier bulk action * * @since 1.0 * * @return string [type of filter] */ public function current_action() { if (isset($_REQUEST['filter_customer'])) { return 'filter_life_stage'; } if (isset($_REQUEST['customer_search'])) { return 'customer_search'; } return parent::current_action(); }
public function current_action() { if (isset($_POST['clear-recent-list'])) { return 'clear-recent-list'; } return parent::current_action(); }
/** * Get the current action selected from the bulk actions dropdown. * Return the action name or FALSE if no action was selected. * * @brief Action * @since 1.5.1 * @deprecated - not used * * @return string|bool */ public function current_action() { return isset($_REQUEST['_action']) ? $_REQUEST['_action'] : parent::current_action(); }
public function current_action() { if (isset($_REQUEST['filter_employee'])) { return 'filter_employee'; } if (isset($_REQUEST['employee_search'])) { return 'employee_search'; } return parent::current_action(); }
/** * Get current action * * @since 0.6 * @return string|boolean */ public function current_action() { if (isset($_REQUEST['add_users']) && isset($_REQUEST["users"])) { return 'add_users'; } return parent::current_action(); }
/** * Trigger currenct bulk action * * @since 1.0 * * @return string */ public function current_action() { if (isset($_REQUEST['filter_group'])) { return 'filter_group'; } return parent::current_action(); }
/** * * @return string */ public function current_action() { $action = wp_validate_action(); if ($action && isset($_REQUEST['delete_tags']) && ('delete' == $action || 'delete' == $_REQUEST['action2'])) { return 'bulk-delete'; } return parent::current_action(); }
public function activity_process_bulk_action() { $wp_list_table = new WP_List_Table(); $action = $wp_list_table->current_action(); if ($action === false) { return; } switch ($action) { case 'trash': if (!empty($_REQUEST['log'])) { $ids = $_REQUEST['log']; self::move_to_trash_activity($ids); } break; case 'untrash': if (!empty($_REQUEST['log'])) { $ids = $_REQUEST['log']; self::untrash_data_activity($ids); } break; case 'delete': if (!empty($_REQUEST['log'])) { $ids = $_REQUEST['log']; self::delete_data_activity($ids); } break; } }
/** * Trigger current action * * @return string */ public function current_action() { if (isset($_REQUEST['filter_entitlement'])) { return 'filter_entitlement'; } return parent::current_action(); }
/** * Render current actions * @return [type] [description] */ public function current_action() { if (isset($_REQUEST['filter_audit_log'])) { return 'filter_audit_log'; } return parent::current_action(); }
public function current_action() { return empty($_POST['submit']) ? parent::current_action() : false; }
/** * * @return string */ public function current_action() { if (isset($_REQUEST['delete_all']) || isset($_REQUEST['delete_all2'])) { return 'delete_all'; } return parent::current_action(); }
function current_action() { if ( isset( $_REQUEST['find_detached'] ) ) return 'find_detached'; if ( isset( $_REQUEST['found_post_id'] ) && isset( $_REQUEST['media'] ) ) return 'attach'; if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) return 'delete_all'; return parent::current_action(); }