Retrieves a value at a specified offset.
(mixed) (Required) The offset to retrieve.
(mixed) If set, the value at the specified offset, null otherwise.
File: wp-includes/class-wp-hook.php
public function offsetGet( $offset ) { return isset( $this->callbacks[ $offset ] ) ? $this->callbacks[ $offset ] : null; }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_hook/offsetget