WP_Hook::offsetGet( mixed $offset )

Retrieves a value at a specified offset.


Parameters

$offset

(mixed) (Required) The offset to retrieve.


Return

(mixed) If set, the value at the specified offset, null otherwise.


Source

File: wp-includes/class-wp-hook.php

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

Changelog

Changelog
Version Description
WP-4.7.0 Introduced.