WP_List_Table::current_action(): string|false

In this article

Gets the current action selected from the bulk actions dropdown.

Return

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

Source

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;
}

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

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