Sets a value at a specified offset.
(mixed) (Required) The offset to assign the value to.
(mixed) (Required) The value to set.
File: wp-includes/class-wp-hook.php
public function offsetSet( $offset, $value ) { if ( is_null( $offset ) ) { $this->callbacks[] = $value; } else { $this->callbacks[ $offset ] = $value; } }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_hook/offsetset