basic action hooks in wordpress code example
Example: wordpress add action
// Hooks a function on to a specific action.
add_action( string $tag, callable $function_to_add, int $priority = 10,
int $accepted_args = 1 )
// Hooks a function on to a specific action.
add_action( string $tag, callable $function_to_add, int $priority = 10,
int $accepted_args = 1 )