WP_Hook::offsetGet()publicWP 4.7.0ReturnTypeWillChange

Retrieves a value at a specified offset.

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

Хуков нет.

Возвращает

Разное. If set, the value at the specified offset, null otherwise.

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

$WP_Hook = new WP_Hook();
$WP_Hook->offsetGet( $offset );
$offset(разное) (обязательный)
The offset to retrieve.

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

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

Код WP_Hook::offsetGet() WP 6.5.2

public function offsetGet( $offset ) {
	return isset( $this->callbacks[ $offset ] ) ? $this->callbacks[ $offset ] : null;
}