GC_Hook::offsetGet()

最后更新于:2021-11-27 21:29:17

GC_Hook::offsetGet( mixed$offset)

Retrieves a value at a specified offset.

参数

$offset

(mixed) (Required) The offset to retrieve.

响应

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

源文件

文件: gc-includes/class-gc-hook.php

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