Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Remove free trial from product page
- This topic has 1 reply, 2 voices, and was last updated 4 years, 7 months ago by WCFM Forum.
Viewing 1 reply thread
- AuthorPosts
- February 13, 2020 at 6:32 am #106898admin-8812Participant
On the page “add a new product” i would like to remove free trial & Sign-up fee ($) fields. The vendors dont need these, and they are a bit confusing. This is for subscriptions.
Thanks
Erin - April 5, 2020 at 11:22 am #115562WCFM ForumMember
Hi,
Add this code snippet to your site for the purpose-
add_filter( 'wcfm_product_manage_fields_general', function( $general_fields, $product_id ) { $general_fields = wcfm_hide_field( '_subscription_sign_up_fee', $general_fields ); $general_fields = wcfm_hide_field( '_subscription_trial_length', $general_fields ); $general_fields = wcfm_hide_field( '_subscription_trial_period', $general_fields ); return $general_fields; }, 50, 2 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.