Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Membership › Remove "Change or Upgrade your current membership plan"
- This topic has 7 replies, 3 voices, and was last updated 5 years, 3 months ago by
WCFM Forum.
- AuthorPosts
- October 24, 2019 at 1:11 pm #88793
aemr45
ParticipantHi, in order to force vendors to cancel membership plan before changing or updating, I need to remove the access to “Change or Upgrade your current membership plan” from vendor’s profile membership (shown in pic)
This is because changing plan with this function does not cancel stripe’s membership and products stay the same, and I need to go to draft for product limitation.
Thanks.
Attachments:
You must be logged in to view attached files. - November 5, 2019 at 6:08 pm #90815
WCFM Forum
MemberHi,
Please add this code to your site –
add_filter( 'wcfm_is_allow_change_membership', '__return_false' );
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
- November 5, 2019 at 11:04 pm #90915
- November 7, 2019 at 5:08 pm #91297
Sarmistha Chakraborty
MemberHi,
Try this code to your child theme’s style.css,
div#wcfm_profile_manage_form_membership_expander h2 { display: none; }
Thanks.
- November 11, 2019 at 7:33 am #91748
aemr45
ParticipantHi,
The plugin Snippets its showing that there is something wrong (pic attached), is it safe to add this code anyway?
Thanks.
Attachments:
You must be logged in to view attached files.- November 11, 2019 at 11:30 am #91766
Sarmistha Chakraborty
MemberHi,
Please add the above script to your theme’s style.css. This is not php script, it’s css script.
What we understand that, you are using “Code Snippets” plugin. for this add below code,add_action( 'wp_footer', function() { ?> <style> div#wcfm_profile_manage_form_membership_expander h2 { display: none; } </style> <?php } );
Thanks.
- November 12, 2019 at 3:28 am #91876
aemr45
ParticipantHi, that’s correct. this code worked with code snippets.
Thank you very much!
- November 12, 2019 at 9:18 am #91902
WCFM Forum
MemberYou are always welcome 🙂
Let me know if there’s anything else we can help you with.
Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.
- AuthorPosts
- The topic ‘Remove "Change or Upgrade your current membership plan"’ is closed to new replies.