WCFM Downloadable Item Hide Fields

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM WCFM Downloadable Item Hide Fields

Viewing 3 reply threads
  • Author
    Posts
    • #60171
      slipksizz
      Participant

      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! 🙂

    • #60246
      WCFM Forum
      Member

      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

    • #60574
      slipksizz
      Participant

      Thanks.

    • #60713
      WCFM Forum
      Member

      You are welcome 🙂

Viewing 3 reply threads
  • The topic ‘WCFM Downloadable Item Hide Fields’ is closed to new replies.