WC_Admin_Duplicate_Product::__construct
Constructor.
Method of the class: WC_Admin_Duplicate_Product{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Admin_Duplicate_Product = new WC_Admin_Duplicate_Product(); $WC_Admin_Duplicate_Product->__construct();
WC_Admin_Duplicate_Product::__construct() WC Admin Duplicate Product:: construct code WC 10.6.2
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' ) );
}