Remove "Change or Upgrade your current membership plan"

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 – Membership Remove "Change or Upgrade your current membership plan"

Viewing 6 reply threads
  • Author
    Posts
    • #88793
      aemr45
      Participant

      Hi, 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.
    • #90815
      WCFM Forum
      Member

      Hi,

      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

    • #90915
      aemr45
      Participant

      Thank you works great!!

      Any idea how to remove the text Additional Info? (pic attached)

      Maybe changing to color white..

      Thanks!

      Attachments:
      You must be logged in to view attached files.
    • #91297

      Hi,

      Try this code to your child theme’s style.css,

      div#wcfm_profile_manage_form_membership_expander h2 {
          display: none;
      }

      Thanks.

    • #91748
      aemr45
      Participant

      Hi,

      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.
      • #91766

        Hi,

        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.

    • #91876
      aemr45
      Participant

      Hi, that’s correct. this code worked with code snippets.

      Thank you very much!

    • #91902
      WCFM Forum
      Member

      You 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.  

Viewing 6 reply threads
  • The topic ‘Remove "Change or Upgrade your current membership plan"’ is closed to new replies.