If a function requires add_action('init') how can I run it only once on plugin activation?
25027
Uninstall, Activate, Deactivate a plugin: typical features & how-to
158476
How to run some code only when the rails console starts, kind of like an rc file?
93885
How do I execute code AFTER a form has loaded?
148542
How does Drupal know when to run an update script?
125337
Does hook_install() get called before or after configuration yml files are loaded?
110514
How do I immediately execute an anonymous function in PHP?
35175
How to avoid multiple running instances of same handler function when running it from editor?
65018
How to prevent behavior-attached functions from being attached twice?
21102
How to disable beforeunload action when user is submitting a form?
145312
Triggering actions when a variable is set
110645
Activity that is only launched once after a new install?
104004
Why is init not a class method?
89466
How do I explicitly execute default action from jQuery event
109038
Remove Actions/Filters added via Anonymous Functions
63556
How do I exclude plugins from getting automatically updated?
70236
How can I make a Click-once deployed app run at startup?
94695
How do I call functions loaded from a Static Resource JavaScript file?