| @@ -24,9 +24,8 @@ | ||
| 24 | 24 | * Set Elementor activation hook. |
| 25 | 25 | * |
| 26 | 26 | * Fired by `register_activation_hook` when the plugin is activated. |
| 27 | 27 | * |
| 28 | - * @param bool $network_wide | |
| 29 | 28 | * @since 1.0.0 |
| 30 | 29 | * @access public |
| 31 | 30 | * @static |
| 32 | 31 | */ |
| @@ -65,12 +64,8 @@ | ||
| 65 | 64 | } |
| 66 | 65 | } |
| 67 | 66 | } |
| 68 | 67 | |
| 69 | - public static function deactivation() { | |
| 70 | - Api::get_deactivation_data(); | |
| 71 | - } | |
| 72 | - | |
| 73 | 68 | /** |
| 74 | 69 | * Uninstall Elementor. |
| 75 | 70 | * |
| 76 | 71 | * Set Elementor uninstallation hook. |
| @@ -82,10 +77,8 @@ | ||
| 82 | 77 | * @static |
| 83 | 78 | */ |
| 84 | 79 | public static function uninstall() { |
| 85 | 80 | wp_clear_scheduled_hook( 'elementor/tracker/send_event' ); |
| 86 | - | |
| 87 | - Api::get_uninstalled_data(); | |
| 88 | 81 | } |
| 89 | 82 | |
| 90 | 83 | /** |
| 91 | 84 | * Init. |
| @@ -97,9 +90,8 @@ | ||
| 97 | 90 | * @static |
| 98 | 91 | */ |
| 99 | 92 | public static function init() { |
| 100 | 93 | register_activation_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'activation' ] ); |
| 101 | - register_deactivation_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'deactivation' ] ); | |
| 102 | 94 | register_uninstall_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'uninstall' ] ); |
| 103 | 95 | |
| 104 | 96 | add_action( 'wpmu_new_blog', function ( $site_id ) { |
| 105 | 97 | if ( ! is_plugin_active_for_network( ELEMENTOR_PLUGIN_BASE ) ) { |
| @@ -120,9 +112,9 @@ | ||
| 120 | 112 | |
| 121 | 113 | Manager::create_default_kit(); |
| 122 | 114 | |
| 123 | 115 | restore_current_blog(); |
| 124 | - } | |
| 116 | + }; | |
| 125 | 117 | |
| 126 | 118 | return; |
| 127 | 119 | } |
| 128 | 120 | |