WP_List_Table::current_action
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 List Table::current action WP 7.1
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;
}