WP_Hook::offsetGet()publicWP 4.7.0ReturnTypeWillChange

Retrieves a value at a specified offset.

Method of the class: WP_Hook{}

No Hooks.

Return

Mixed. If set, the value at the specified offset, null otherwise.

Usage

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

Changelog

Since 4.7.0 Introduced.

WP_Hook::offsetGet() code WP 6.5.2

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