CoreFiles by mySites.guru
Hooker.php33 lines, 709 bytes, from wordpress-6.0.zip
Raw History Compare with 5.9.20
md5
b3b2f4b985cc507a1519a934c987462a
sha1
a705b10a588a14ac0982579603caf32a74280d4e
sha256
0200e0511bf1e035b32937ec8088eb0c31a0ed2a2d2b2cbebd0fe0601308001e
<?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 116 releases, WordPress 5.8-beta1 to 6.1.16. See them all, or every version of this file.