WP_Hook::offsetGet

Advertisement

Summery Summery

Retrieves a value at a specified offset.

Syntax Syntax

WP_Hook::offsetGet( mixed $offset )

Parameters Parameters

$offset

(Required) The offset to retrieve.

Return Return

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

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply