Package::on_deactivation() – Add deactivation hook for versions of the plugin that don’t have the deactivation note.

You appear to be a bot. Output may be restricted

Description

Add deactivation hook for versions of the plugin that don't have the deactivation note.

Usage

Package::on_deactivation();

Parameters

Returns

void

Source

File name: woocommerce/packages/woocommerce-admin/src/Composer/Package.php
Lines:

1 to 8 of 8
  public static function on_deactivation() {
    if ( ! self::is_notes_initialized() ) {
      return;
    }

    $update_version = new DeactivatePlugin();
    $update_version::delete_note();
  }
 

 View on GitHub View on Trac