WP_Hook::offsetGet │ public │ WP 4.7.0 │ ReturnTypeWillChange

Retrieves a value at a specified offset.

Method of the class: WP_Hook{}

No Hooks.

Returns

array|null. If set, the value at the specified offset, null otherwise.

Usage

$WP_Hook = new WP_Hook();
$WP_Hook->offsetGet( $offset );
$offset(int) (required)
The offset to retrieve.

Changelog

Since 4.7.0 Introduced.

WP_Hook::offsetGet() code WP 7.1.4

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