Skip to content

Commit f90d870

Browse files
author
Marco Pereirinha
committed
Hook the activation links to the init action
1 parent 6b4f3a5 commit f90d870

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

php/class-deactivation.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ public function __construct( Plugin $plugin ) {
6464
add_action( 'init', array( $this, 'load_hooks' ) );
6565
add_action( 'current_screen', array( $this, 'maybe_load_hooks' ) );
6666
add_action( 'cloudinary_init_settings', array( $this, 'settings_init' ) );
67-
68-
add_filter( 'plugin_action_links_' . $this->plugin->plugin_file, array( $this, 'tag_deactivate' ) );
6967
}
7068

7169
/**
@@ -78,6 +76,7 @@ public function __construct( Plugin $plugin ) {
7876
public function load_hooks() {
7977
add_filter( 'cloudinary_api_rest_endpoints', array( $this, 'rest_endpoint' ) );
8078
add_action( 'cloudinary_cleanup_event', array( $this, 'cleanup' ) );
79+
add_filter( 'plugin_action_links_' . $this->plugin->plugin_file, array( $this, 'tag_deactivate' ) );
8180
}
8281

8382
/**

0 commit comments

Comments
 (0)