\TriTan\Common\HooksRemoveActionHook

Summary

Methods
Properties
Constants
__construct()
remove()
removeAll()
$filter
PRIORITY_NEUTRAL
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

PRIORITY_NEUTRAL

PRIORITY_NEUTRAL

Default priority

Properties

$filter

$filter : object

access public

Type

object

Methods

__construct()

__construct(\TriTan\Interfaces\RemoveFilterHookInterface  $filter) 

Parameters

\TriTan\Interfaces\RemoveFilterHookInterface $filter

remove()

remove(string  $hook, callback  $function_to_remove, integer  $priority = self::PRIORITY_NEUTRAL) : boolean

removeAction Removes a function/method from a specified action hook.

Parameters

string $hook

The action hook to which the function to be removed is hooked.

callback $function_to_remove

The name of the function/method which should be removed.

integer $priority

Optional. The priority of the function/method (default: 10).

Returns

boolean —

Whether the function/method is removed.

removeAll()

removeAll(string  $hook, integer  $priority = false) : boolean

removeAllActions Remove all of the hooks from an action.

Parameters

string $hook

The action to remove hooks from.

integer $priority

The priority number to remove them from.

Returns

boolean —

True when finished.