WC_Admin_Upload_Downloadable_Product::__construct
Add hooks.
Method of the class: WC_Admin_Upload_Downloadable_Product{}
No Hooks.
Returns
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() WC Admin Upload Downloadable Product:: construct code WC 10.6.2
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' ) );
}