WordPress at Your Fingertips
function is not described

WP_Users_List_Table::current_action() public WP 3.1.0

Capture the bulk action required, and return it.

Overridden from the base class implementation to capture the role change drop-down.

{} It's a method of the class: WP_Users_List_Table{}

No Hooks.

Return

String. The bulk action required.

Usage

$WP_Users_List_Table = new WP_Users_List_Table();
$WP_Users_List_Table->current_action();

Changelog

Since 3.1.0 Introduced.

Code of WP_Users_List_Table::current_action() WP 5.8.2

public function current_action() {
	if ( isset( $_REQUEST['changeit'] ) && ! empty( $_REQUEST['new_role'] ) ) {
		return 'promote';
	}

	return parent::current_action();
}