WP_Hook::offsetExists │ public │ WP 4.7.0 │ ReturnTypeWillChange

Determines whether an offset value exists.

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

Хуков нет.

Возвращает

bool. True if the offset exists, false otherwise.

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

$WP_Hook = new WP_Hook();
$WP_Hook->offsetExists( $offset );
$offset(int) (обязательный)
An offset to check for.

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

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

Код WP_Hook::offsetExists() WP 7.1.2

public function offsetExists( $offset ) {
	return isset( $this->callbacks[ $offset ] );
}