WP_Hook::current │ public │ WP 4.7.0 │ ReturnTypeWillChange

Returns the current element.

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

Хуков нет.

Возвращает

array|false. Array of callbacks at current priority, false if there are no more elements.

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

$WP_Hook = new WP_Hook();
$WP_Hook->current();

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

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

Код WP_Hook::current() WP 7.1.2

public function current() {
	return current( $this->callbacks );
}