What is the difference between do_action and add_action functions in wordpress. I have read about them, but I have a confusion:: I feel that add_action is mandatory for adding functions to a location, then only we can call do_action to call those functions. We can not call do_action without addding any functions to an action. Am I right or not ?
Also I am working on a wordpress project for the first time.
I have a lot of do_action calls in header.php file and if I remove do_action calls, I can not see any effect on the browser output. Also I cannot find the corresponding add_action calls for those do_action calls in my project.