Remove "Change or Upgrade your current membership plan"

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Membership Remove "Change or Upgrade your current membership plan"

This topic contains 7 replies, has 3 voices, and was last updated by WCFM Forum WCFM Forum 4 weeks ago.

  • Author
    Posts
  • #88793
    Avatar
    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
    WCFM Forum
    Keymaster

    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
    Avatar
    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
    Avatar
    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
    Avatar
    aemr45
    Participant

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

    Thank you very much!

  • #91902
    WCFM Forum
    WCFM Forum
    Keymaster

    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.  

The topic ‘Remove "Change or Upgrade your current membership plan"’ is closed to new replies.