Title: doesn&#8217;t support wc function
Last modified: December 22, 2023

---

# doesn’t support wc function

 *  [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/support-wc-we/)
 * Hello, I change the name of the download file for the user with this code, it
   is correct in woocommerce, but it seems that your plugin does not follow the 
   settings of woocommerce.
 * What function should I replace to use this setting in your plugin?
 *     ```wp-block-code
       function change_woocommerce_file_download_filename( $filename, $product_id ) {
           // Get the file extension from the processed file name.
           $filetype = wp_check_filetype( $filename );
   
           // generate a new file using Product ID
           $new_file_name = 'New File Name';
   
           // Join the new file name with file extension with (.).
           return join( '.', array( $new_file_name, $filetype['ext'] ) );
       }
       add_filter( 'woocommerce_file_download_filename', 'change_woocommerce_file_download_filename', 10, 2 );
       ```
   

The topic ‘doesn’t support wc function’ is closed to new replies.

 * ![](https://ps.w.org/download-now-for-woocommerce/assets/icon-256x256.png?rev
   =3471148)
 * [Free Downloads WooCommerce](https://wordpress.org/plugins/download-now-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-now-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-now-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/download-now-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-now-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-now-for-woocommerce/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [vtrn](https://wordpress.org/support/users/vtrn/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/support-wc-we/)
 * Status: not resolved