Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Feature Request › Custom Menu Item Capability
- This topic has 14 replies, 3 voices, and was last updated 5 years, 6 months ago by WCFM Forum.
- AuthorPosts
- January 25, 2019 at 4:08 pm #45193The Garden EmporiumParticipant
Hi
I have done a custom menu item but would like to limit this to paid membership on the vendors side is this possiable?
- January 26, 2019 at 6:51 am #45258WCFM ForumMember
Hi,
You have created this menu item? Using code or WCFM menu manager!
Thank You
- January 26, 2019 at 12:31 pm #45300The Garden EmporiumParticipant
Hi
I have used the plugin that you created and posted on another question.
- January 27, 2019 at 8:17 am #45401WCFM ForumMember
Ok, so you have modified that as well, right?
Send me that, I will add capability option to that.
Thank You
- January 28, 2019 at 9:33 am #45532The Garden EmporiumParticipantThis reply has been marked as private.
- January 28, 2019 at 9:56 am #45546WCFM ForumMember
Thanks.
- January 28, 2019 at 10:08 am #45547WCFM ForumMember
Hi,
“Parts Request” – is this your custom menu?
You want to have capability control for this under each Group capability, right?
Thank You
- January 28, 2019 at 11:20 am #45550The Garden EmporiumParticipant
Hi
Yes “Parts Request”
Yes please if that is posibile
Many Thanks
- January 29, 2019 at 8:50 am #45671WCFM ForumMember
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
- January 29, 2019 at 12:15 pm #45687The Garden EmporiumParticipant
Hi
Thank you, it works just how I want it to.
Top class customer support.
- January 29, 2019 at 12:21 pm #45688WCFM ForumMember
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 🙂
- April 28, 2019 at 7:32 am #59744ZoltanGuest
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 - April 29, 2019 at 7:46 am #59840WCFM ForumMember
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
- April 29, 2019 at 9:30 am #59866ZoltanGuest
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!
- May 1, 2019 at 12:52 pm #60194WCFM ForumMember
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
- AuthorPosts
- The topic ‘Custom Menu Item Capability’ is closed to new replies.