WP_Hook::offsetExists()publicWP 4.7.0ReturnTypeWillChange

Determines whether an offset value exists.

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

Хуков нет.

Возвращает

true|false. True if the offset exists, false otherwise.

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

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

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

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

Код WP_Hook::offsetExists() WP 6.4.3

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