WP_Hook::offsetGet() WordPress Method

The WP_Hook::offsetGet() method allows you to get a specific registered callback from a WordPress hook. This is useful if you need to unregister a callback or change its priority.

WP_Hook::offsetGet( $offset ) #

Contents


Source

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

	public function offsetGet( $offset ) {
		return isset( $this->callbacks[ $offset ] ) ? $this->callbacks[ $offset ] : null;
	}

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.