do_action( string $tag, $arg = '' )
This function invokes all functions attached to action hook $tag
. It is possible to create new action hooks by simply calling this function, specifying the name of the new hook using the $tag
parameter. You can pass extra arguments to the hooks.