packages/woocommerce-admin/src/Composer/Package.php


Lines:

1 to 31 of 31
<?php

/**
 * Returns information about the package and handles init.
 */


/**
 * This namespace isn't compatible with the PSR-4
 * which ensures that the copy in the standalone plugin will not be autoloaded.
 */
namespace Automattic\WooCommerce\Admin\Composer;

defined( 'ABSPATH' ) || exit;

use Automattic\WooCommerce\Admin\Notes\DeactivatePlugin;
use Automattic\WooCommerce\Admin\Notes\Notes;
use Automattic\WooCommerce\Admin\Notes\NotesUnavailableException;
use Automattic\WooCommerce\Admin\FeaturePlugin;

/* class Package */
/* function Package::init() – Init the package. */
/* function Package::get_version() – Return the version of the package. */
/* function Package::get_active_version() – Return the active version of WC Admin. */
/* function Package::is_package_active() – Return whether the package is active. */
/* function Package::get_path() – Return the path to the package. */
/* function Package::on_deactivation() – Add deactivation hook for versions of the plugin that don’t have the deactivation note. */
/* function Package::check_outdated_wca_plugin() – Checks if embedded WCA version is newer than standalone WCA
and adds/removes DeactivatePlugin note as necessary. */
/* function Package::is_notes_initialized() – Checks if notes have been initialized. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,,