[Resolved] register_activation_hook vs. add_action
I’m a bit mystified by the difference between register_activation_hook() and a simple add_action().
If I place a simple add_action() in the main body of the plugin code, is this function called only upon activation, or will it be called other times?
I’m about to add some scheduled event, and read from wp_schedule_event about register_activation_hook(), which I must use to avoid ending up with a lot of scheduled events, apparently.
It this is the case, why aren’t add_action hooks added multiple times?
Let me know if you know:-)
- The topic ‘[Resolved] register_activation_hook vs. add_action’ is closed to new replies.