# depicter/1.3.3/vendor/averta/wordpress/src/Event/HookInterface.php

Depicter — Popup &amp; Slider Builder, version 1.3.3. 49 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.3.3/code/vendor/averta/wordpress/src/Event/HookInterface.php
- Raw: https://pluginprobe.com/plugins/depicter/1.3.3/raw/vendor/averta/wordpress/src/Event/HookInterface.php
- Modified: 2022-06-01T06:26:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/1.3.3/code/vendor/averta/wordpress/src/Event/HookInterface.php#L10-L20`.

```php
<?php
namespace Averta\WordPress\Event;


interface HookInterface
{
	/**
	 * Adds a callback function to a hook.
	 *
	 * @param string   $hook_name
	 * @param callable $callback
	 * @param int      $priority
	 * @param int      $accepted_args
	 *
	 * @return mixed
	 */
	public function add( $hook_name, $callback, $priority = 10, $accepted_args = 1 );

	/**
	 * Removes a callback function from a hook.
	 *
	 * @param string   $hook_name
	 * @param callable $callback
	 * @param int      $priority
	 *
	 * @return mixed
	 */
	public function remove( $hook_name, $callback, $priority = 10 );

	/**
	 * Checks if any action has been registered for a hook.
	 *
	 * @param string        $hook_name
	 * @param callable|bool $callback
	 *
	 * @return mixed
	 */
	public function has( $hook_name, $callback = false );

	/**
	 * Retrieves the number of times an hook-event has been fired during the current request.
	 *
	 * @param string $hook_name
	 *
	 * @return mixed
	 */
	public function did( $hook_name );
}

```
