WP_Hook::offsetGet( mixed $offset ): mixed

In this article

Retrieves a value at a specified offset.

Parameters

$offsetmixedrequired
The offset to retrieve.

Return

mixed 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.