WC_Admin_Upload_Downloadable_Product::__construct()publicWC 1.0

Add hooks.

Method of the class: WC_Admin_Upload_Downloadable_Product{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Admin_Upload_Downloadable_Product::__construct() code WC 9.0.1

public function __construct() {
	add_filter( 'upload_dir', array( $this, 'upload_dir' ) );
	add_filter( 'wp_unique_filename', array( $this, 'update_filename' ), 10, 3 );
	add_action( 'media_upload_downloadable_product', array( $this, 'media_upload_downloadable_product' ) );
}