WC_Admin_Duplicate_Product::__construct()publicWC 1.0

Constructor.

Method of the class: WC_Admin_Duplicate_Product{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Admin_Duplicate_Product::__construct() code WC 8.7.0

public function __construct() {
	add_action( 'admin_action_duplicate_product', array( $this, 'duplicate_product_action' ) );
	add_filter( 'post_row_actions', array( $this, 'dupe_link' ), 10, 2 );
	add_action( 'post_submitbox_start', array( $this, 'dupe_button' ) );
}