current_action()
Retrieves the name of the current action hook.
Хуков нет.
Возвращает
Строку|false. Hook name of the current action, false if no action is running.
Использование
current_action();
Список изменений
| С версии 3.9.0 | Введена. |
Код current_action() current action WP 7.0
function current_action() {
return current_filter();
}