WP_Hook::offsetUnset
Unsets a specified offset.
Method of the class: WP_Hook{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Hook = new WP_Hook(); $WP_Hook->offsetUnset( $offset );
- $offset(mixed) (required)
- The offset to unset.
Changelog
| Since 4.7.0 | Introduced. |
WP_Hook::offsetUnset() WP Hook::offsetUnset code WP 6.9.1
public function offsetUnset( $offset ) {
unset( $this->callbacks[ $offset ] );
$this->priorities = array_keys( $this->callbacks );
}