WordPress at Your Fingertips
function is not described

WP_Hook::offsetExists() public WP 4.7.0

Determines whether an offset value exists.

{} It's a method of the class: WP_Hook{}

No Hooks.


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


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

Code of WP_Hook::offsetExists() WP 5.8.3

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