register_activation_hook [ WordPress Function ]
| Parameters: |
|
| Defined at: |
|
Set the activation hook for a plugin.
When a plugin is activated, the action 'activate_PLUGINNAME' hook is activated. In the name of this hook, PLUGINNAME is replaced with the name of the plugin, including the optional subdirectory. For example, when the plugin is located in wp-content/plugin/sampleplugin/sample.php, then the name of this hook will become 'activate_sampleplugin/sample.php'. When the plugin consists of only one file and is (as by default) located at wp-content/plugin/sample.php the name of this hook will be 'activate_sample.php'.
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/register activation hook « WordPress Codex
The register_activation_hook function registers a plugin function to be run when the plugin is activated. This is easier than using the activate_ pluginname action ...
codex.wordpress.org - WordPress › Support » register_activation_hook DOES NOT WORK
I did a search here for register_activation_hook and saw a lot of people asked questions about why it was not working and there aren't any replies to most of ...
wordpress.org - The Bane of WordPress Plugin Development: register_activation_hook
Jan 24, 2011 ... If you're developing a WordPress plugin, any initial, one-time setup work your plugin needs is done through a call to register_activation_hook() ...
www.toppa.com - debugging “register_activation_hook” in WordPress - Stack Overflow
Originally posted on the WordPress forums but no-one answered... so ... I know nothing about WordPress, but...since there is no error handling in ...
stackoverflow.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- richard_steeleagency on "Can't create table during activation..."
- steveBritton on "register_activation_hook"
- steveBritton on "register_activation_hook"
- theBrettman on "Can't create table during activation..."
- theBrettman on "Can't create table during activation..."
- maxe___ on "register_activation_hook in class"
- michover on "$wpdb | installing custom table plugin"
- Stefan M. on "$wpdb | installing custom table plugin"
- michover on "$wpdb | installing custom table plugin"
- brian914 on "Question about hooks"