WP_Users_List_Table::current_action(): string

In this article

Captures the bulk action required, and return it.

Description

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

Return

string The bulk action required.

Source

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

	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.