register_activation_hook( ... )

Set the activation hook for a plugin.

Parameters:
  • $file string
  • $callback callable