WP_Hook::offsetGet( int $offset ): array|null

In this article

Retrieves a value at a specified offset.

Parameters

$offsetintrequired
The offset to retrieve.

Return

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

Source

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

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.