An action is a function that attaches to a hook, extending the functionality of WordPress. An action runs when an event occurs in WordPress. Unlike a filter, an action can perform database operations, such as creating, reading, updating, or deleting data. An action’s callback function does not return anything to the calling action hook.