PluginProbe
Depicter — Popup & Slider Builder / trunk
Depicter — Popup & Slider Builder vtrunk
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / vendor / averta / wordpress / src / Event / HookInterface.php

HookInterface.php in Depicter — Popup & Slider Builder trunk, at vendor/averta/wordpress/src/Event/HookInterface.php

49 lines 1007 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Averta\WordPress\Event;
3
4
5 interface HookInterface
6 {
7 /**
8 * Adds a callback function to a hook.
9 *
10 * @param string $hook_name
11 * @param callable $callback
12 * @param int $priority
13 * @param int $accepted_args
14 *
15 * @return mixed
16 */
17 public function add( $hook_name, $callback, $priority = 10, $accepted_args = 1 );
18
19 /**
20 * Removes a callback function from a hook.
21 *
22 * @param string $hook_name
23 * @param callable $callback
24 * @param int $priority
25 *
26 * @return mixed
27 */
28 public function remove( $hook_name, $callback, $priority = 10 );
29
30 /**
31 * Checks if any action has been registered for a hook.
32 *
33 * @param string $hook_name
34 * @param callable|bool $callback
35 *
36 * @return mixed
37 */
38 public function has( $hook_name, $callback = false );
39
40 /**
41 * Retrieves the number of times an hook-event has been fired during the current request.
42 *
43 * @param string $hook_name
44 *
45 * @return mixed
46 */
47 public function did( $hook_name );
48 }
49