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.

Метод класса: WP_Users_List_Table{}

Хуков нет.

Возвращает

Строку. The bulk action required.

Использование

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

Список изменений

С версии 3.1.0 Введена.

Код WP_Users_List_Table::current_action() WP 6.5.2

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

	return parent::current_action();
}