WP_Hook::offsetExists() WordPress Method

The WP_Hook::offsetExists() method is a boolean method used to check if a given offset exists in the hooks array. This is useful for determining whether a particular hook has been registered with the WordPress core.

WP_Hook::offsetExists( $offset ) #

Contents


Source

File: wp-includes/class-wp-hook.php

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.