WP_Users_List_Table::current_action()publicWP 3.1.0

Captures the bulk action required, and return it.

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

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.

WP_Users_List_Table::current_action() code WP 6.6.2

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

	return parent::current_action();
}