WP_List_Table::current_action() WordPress Method
WP_List_Table::current_action() is a method used to get the current action being performed on a list table. This is typically done by checking the $_REQUEST global for the 'action' parameter.
WP_List_Table::current_action() #
Gets the current action selected from the bulk actions dropdown.
Return
(string|false) The action name. False if no action was selected.
Source
File: wp-admin/includes/class-wp-list-table.php
public function current_action() { if ( isset( $_REQUEST['filter_action'] ) && ! empty( $_REQUEST['filter_action'] ) ) { return false; } if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) { return $_REQUEST['action']; } return false; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |