WP_List_Table::current_action()publicWP 3.1.0

Gets the current action selected from the bulk actions dropdown.

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

Хуков нет.

Возвращает

Строку|false. The action name. False if no action was selected.

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

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

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

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

Код WP_List_Table::current_action() WP 6.5.2

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