Custom Menu Item Capability

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!

Viewing 14 reply threads
  • Author
    Posts
    • #45193

      Hi

      I have done a custom menu item but would like to limit this to paid membership on the vendors side is this possiable?

    • #45258
      WCFM Forum
      Keymaster

      Hi,

      You have created this menu item? Using code or WCFM menu manager!

      Thank You

    • #45300

      Hi

      I have used the plugin that you created and posted on another question.

    • #45401
      WCFM Forum
      Keymaster

      Ok, so you have modified that as well, right?

      Send me that, I will add capability option to that.

      Thank You

    • #45532
      This reply has been marked as private.
    • #45546
      WCFM Forum
      Keymaster

      Thanks.

    • #45547
      WCFM Forum
      Keymaster

      Hi,

      “Parts Request” – is this your custom menu?

      You want to have capability control for this under each Group capability, right?

      Thank You

    • #45550

      Hi

      Yes “Parts Request”

      Yes please if that is posibile

      Many Thanks

    • #45671
      WCFM Forum
      Keymaster

      HI,

      Here is your updated plugin along with Capability setting – https://drive.google.com/file/d/1OTHmLDBedfIeC2mM_VPe65HYOX9vcVwu/view?usp=sharing

      You will see such capability option – https://ibb.co/7prpV6s

      Thank You

    • #45687

      Hi

      Thank you, it works just how I want it to.

      Top class customer support.

    • #45688
      WCFM Forum
      Keymaster

      You are welcome 🙂

      If you get a chance then please leave a review for me – https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/

      Have a great day 🙂

    • #59744
      Zoltan
      Guest

      Hi Team,

      Q 1: Can you please help me with a code snippet to hide Fooevents options if the product is bookable? I’m sure if both exist together independently, the vendor will be puzzled.

      Q 2: I read the forum but have not found the proper solution. How can I limit by capability controller the number of orders / bookings for a certain Group?

      Best,
      Zoltan

    • #59840
      WCFM Forum
      Keymaster

      Hi,

      Please add this line to disable FooEvent –

      add_filter( 'wcfm_is_allow_wc_fooevents', '__return_false' );

      Well, there is no such capability to limit on number of orders or bookings.

      Thank You

    • #59866
      Zoltan
      Guest

      Hi Team,

      Thanks for the snippet. I’m afraid it will disable the Fooevent function as a whole.

      What would be nice to be to have a condition which checks the product type AND if it is bookable then hide the Fooevents menu.

      Something like this (but I have code dysgraphia):

      do_action if post type == bookable product
      add_filter( ‘wcfm_is_allow_wc_fooevents’, ‘__return_false’ );

      Many thanks!

    • #60194
      WCFM Forum
      Keymaster

      Hi,

      Yeah right, this will disable FooEvent totally.

      We will add some option to hide this conditionally, but FooEvent has no such restriction.

      Thank You

Viewing 14 reply threads
  • The topic ‘Custom Menu Item Capability’ is closed to new replies.