WP_Plugins_List_Table::current_action
Gets the current action selected from the bulk actions dropdown.
Also handles the 'clear-recent-list' action from the Recently Active plugins screen.
Метод класса: WP_Plugins_List_Table{}
Хуков нет.
Возвращает
string|false. The action name. False if no action was selected.
Использование
$WP_Plugins_List_Table = new WP_Plugins_List_Table(); $WP_Plugins_List_Table->current_action();
Список изменений
| С версии 3.1.0 | Введена. |
Код WP_Plugins_List_Table::current_action() WP Plugins List Table::current action WP 7.1
public function current_action() {
if ( isset( $_POST['clear-recent-list'] ) ) {
return 'clear-recent-list';
}
return parent::current_action();
}