WP_Hook::offsetExists()
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() WP Hook::offsetExists code WP 6.7.1
public function offsetExists( $offset ) { return isset( $this->callbacks[ $offset ] ); }