WP_Hook::offsetGet( mixed $offset )

Retrieves a value at a specified offset.


Parameters Parameters

$offset

(mixed) (Required) The offset to retrieve.


Top ↑

Return Return

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


Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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