I am trying to understand some fundamentals of php with regards to adding new functions to actions. I found a tutorial where he adds a new function to the ‘save_post’ action…