Automattic\WooCommerce\Admin\Features

NewProductManagementExperience::__construct()publicWC 1.0

Constructor

Method of the class: NewProductManagementExperience{}

No Hooks.

Return

null. Nothing (null).

Usage

$NewProductManagementExperience = new NewProductManagementExperience();
$NewProductManagementExperience->__construct();

NewProductManagementExperience::__construct() code WC 8.6.1

public function __construct() {
	$this->maybe_show_disabled_notice();
	if ( ! Features::is_enabled( 'new-product-management-experience' ) ) {
		return;
	}

	add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );
	add_action( 'get_edit_post_link', array( $this, 'update_edit_product_link' ), 10, 2 );
}