Extensions/WordPress/Plugin/AbstractPlugin.php
private function register_hooks() 
    {
        register_activation_hook(
            $this->plugin_file,
            get_called_class().'::activate'
        );

        register_deactivation_hook(
            $this->plugin_file,
            get_called_class().'::deactivate'
        );

        register_uninstall_hook(
            $this->plugin_file,
            get_called_class().'::uninstall'
        );
    }
private function register_hooks() 
    {
        register_activation_hook(
            $this->plugin_file,
            get_called_class().'::activate'
        );

        register_deactivation_hook(
            $this->plugin_file,
            get_called_class().'::deactivate'
        );

        register_uninstall_hook(
            $this->plugin_file,
            get_called_class().'::uninstall'
        );
    }
private function register_hooks ( ) { register_activation_hook ( $ this -> plugin_file , get_called_class ( ) . '::activate' ) ; register_deactivation_hook ( $ this -> plugin_file , get_called_class ( ) . '::deactivate' ) ; register_uninstall_hook ( $ this -> plugin_file , get_called_class ( ) . '::uninstall' ) ; }
Register hooks that are fired when the plugin is activated,
deactivated, and uninstalled, respectively. The array's first
argument is the name of the plugin defined in `class-plugin-name.php`
Register hooks that are fired when the plugin is activated deactivated and uninstalled respectively . The array s first argument is the name of the plugin defined in class - plugin - name . php