WP_Hook::offsetUnset()publicWP 4.7.0ReturnTypeWillChange

Unsets a specified offset.

Method of the class: WP_Hook{}

No Hooks.

Return

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() code WP 6.5.2

public function offsetUnset( $offset ) {
	unset( $this->callbacks[ $offset ] );
	$this->priorities = array_keys( $this->callbacks );
}