CoreFiles by mySites.guru
Hooker.php33 lines, 708 bytes, from wordpress-5.3.21.zip
Raw History Compare with 5.3.20
md5
0f08c5401425a9615bd19e2f34a5e107
sha1
822fa64e399918db1d36b0eaea865a4fd0c88c13
sha256
a2143d6a637f683db819ee6b24a91d153ce65b7cd91e115bf2098089184779a7
<?php
/**
 * Event dispatcher
 *
 * @package Requests
 * @subpackage Utilities
 */

/**
 * Event dispatcher
 *
 * @package Requests
 * @subpackage Utilities
 */
interface Requests_Hooker {
	/**
	 * Register a callback for a hook
	 *
	 * @param string $hook Hook name
	 * @param callback $callback Function/method to call on event
	 * @param int $priority Priority number. <0 is executed earlier, >0 is executed later
	 */
	public function register($hook, $callback, $priority = 0);

	/**
	 * Dispatch a message
	 *
	 * @param string $hook Hook name
	 * @param array $parameters Parameters to pass to callbacks
	 * @return boolean Successfulness
	 */
	public function dispatch($hook, $parameters = array());
}

The same content is in 481 releases, WordPress 4.6-beta1 to 5.7.21. See them all, or every version of this file.