Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › WCFM Downloadable Item Hide Fields
Tagged: item hide fields, wcfm, wcfm downloadable
- This topic has 3 replies, 2 voices, and was last updated 5 years, 6 months ago by WCFM Forum.
Viewing 3 reply threads
- AuthorPosts
- May 1, 2019 at 10:09 am #60171slipksizzParticipant
Hello all,
I want to not let users select download limit and expiry date, would that be possible?
I tried in many ways, but I don’t quite understand how to make it work.Thank you! 🙂
- May 1, 2019 at 4:22 pm #60246WCFM ForumMember
Hi,
Please add this code snippet to your child theme’s functions.php –
add_filter( 'wcfm_product_fields_downloadable', function( $downloadable_fields, $product_id, $product_type ) { $downloadable_fields = wcfm_hide_field( 'download_limit', $downloadable_fields ); $downloadable_fields = wcfm_hide_field( 'download_expiry', $downloadable_fields ); return $downloadable_fields; }, 50, 3 );
Thank You
- May 4, 2019 at 9:52 am #60574slipksizzParticipant
Thanks.
- May 5, 2019 at 4:02 pm #60713WCFM ForumMember
You are welcome 🙂
- AuthorPosts
Viewing 3 reply threads
- The topic ‘WCFM Downloadable Item Hide Fields’ is closed to new replies.