Core Function
View Source on Trac ↗ register_activation_hook()
register_activation_hook( mixed $file, mixed $callback ) Set the activation hook for a plugin.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $file string | The filename of the plugin including the path. Required |
| $callback callable | The function hooked to the 'activate_PLUGIN' action. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
2.0.0
Source File
wp-includes/plugin.php
Advertisement