add_action( ... )

Adds a callback function to an action hook.

Parameters:
  • $hook_name string
  • $callback callable
  • $priority int
  • $accepted_args int