Traitements à l’installation / désinstallation d’un plugin

class produits{
	public static function hooks(){
		register_activation_hook(__FILE__, array(__CLASS__,'activate'));
		register_deactivation_hook( __FILE__, array(__CLASS__, 'deactivate' ) );
		register_uninstall_hook( __FILE__, array(__CLASS__, 'uninstall' ) );

	public static function activate(){	

	public static function deactivate(){		

	public static function uninstall(){
		//The uninstall hook will be called when the user clicks on the uninstall
		//link that calls for the plugin to uninstall itself. 
		//The link won't be active unless the plugin hooks into the action.