Hook_Manager::add_action( string $tag, callable $callable, int $priority = 10, int $accepted_args = 1 )

Adds an action to WordPress and registers it internally.


Description Description


Parameters Parameters

$tag

(Required) The name of the action which is hooked.

$callable

(Required) The function to call.

$priority

(Optional) Used to specify the priority of the action.

Default value: 10

$accepted_args

(Optional) Used to specify the number of arguments the callable accepts.

Default value: 1


Top ↑

Source Source

File: vendor/automattic/jetpack-autoloader/src/class-hook-manager.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.