WP_Plugins_List_Table::current_action
Gets the current action selected from the bulk actions dropdown.
Also handles the 'clear-recent-list' action from the Recently Active plugins screen.
Method of the class: WP_Plugins_List_Table{}
No Hooks.
Returns
string|false. The action name. False if no action was selected.
Usage
$WP_Plugins_List_Table = new WP_Plugins_List_Table(); $WP_Plugins_List_Table->current_action();
Changelog
| Since 3.1.0 | Introduced. |
WP_Plugins_List_Table::current_action() WP Plugins List Table::current action code WP 7.1
public function current_action() {
if ( isset( $_POST['clear-recent-list'] ) ) {
return 'clear-recent-list';
}
return parent::current_action();
}