WP_Plugins_List_Table::current_action(): string|false

In this article

Gets the current action selected from the bulk actions dropdown.

Description

Also handles the ‘clear-recent-list’ action from the Recently Active plugins screen.

Return

string|false The action name. False if no action was selected.

Source

public function current_action() {
	if ( isset( $_POST['clear-recent-list'] ) ) {
		return 'clear-recent-list';
	}

	return parent::current_action();
}

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.