WordPress plugin activation, deactivation and uninstall hook not being triggered

The function needs to be public, but it can also be static.

For example, from the Akismet plugin:

In the plugin file:

register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );

In the Akismet class file:

public static function plugin_activation() {
    ...
}

techhipbettruvabetnorabahisbahis forumuedusedusedueduedusedusedueduedusedu