WP_Hook::offsetExists()publicWP 4.7.0ReturnTypeWillChange

Determines whether an offset value exists.

Method of the class: WP_Hook{}

No Hooks.

Return

true|false. True if the offset exists, false otherwise.

Usage

$WP_Hook = new WP_Hook();
$WP_Hook->offsetExists( $offset );
$offset(mixed) (required)
An offset to check for.

Changelog

Since 4.7.0 Introduced.

WP_Hook::offsetExists() code WP 6.4.3

public function offsetExists( $offset ) {
	return isset( $this->callbacks[ $offset ] );
}