activation()
activation(string $filename, string $function)
Register Activation Hook
This method is used to run code that should be executed when a plugin is being activated.
Parameters
string | $filename | Plugin's file name. |
string | $function | The function which should be executed. |