\TriTan\Common\HooksAddActionHook

Hooks API: Hook Class

Summary

Methods
Properties
Constants
__construct()
add()
$filter
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$filter

$filter : object

Type

object

Methods

__construct()

__construct(\TriTan\Interfaces\AddFilterHookInterface  $filter) 

__construct class constructor

Parameters

\TriTan\Interfaces\AddFilterHookInterface $filter

add()

add(string  $hook, callback  $function_to_add, integer  $priority = self::PRIORITY_NEUTRAL, integer  $accepted_args = self::ARGUMENT_NEUTRAL) 

Add a new action to the collection to be registered with TriTan CMS.

Parameters

string $hook

The name of the TriTan CMS action that is being registered.

callback $function_to_add

The name of the function/method that is to be called.

integer $priority

Optional. The priority at which the function should be fired. Default is 10.

integer $accepted_args

Optional. The number of arguments that should be passed to the $callback. Default is 1.