Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Hide from Store Manager dashboard
- This topic has 6 replies, 2 voices, and was last updated 4 years, 7 months ago by contact8732.
Viewing 5 reply threads
- AuthorPosts
- April 24, 2020 at 5:00 pm #122519contact8732Participant
Hi, please could you give me code snippet to not display the follow panels on Store Manager dashboard? “Notifications” and “Inquiries” and “Sales by Product”. It is something like this: add_filter( ‘wcfm_is_allow_dashboard_latest_topics’, ‘__return_false’ ); Thanks
- April 24, 2020 at 6:00 pm #122540SushobhanKeymaster
Hello,
Kindly provide a snapshot marking the section/fields that you want to hide/disable.
Thanks! - April 24, 2020 at 10:27 pm #122629contact8732Participant
Thank you
Attachments:
You must be logged in to view attached files. - April 25, 2020 at 10:32 am #122799SushobhanKeymaster
Hello,
Please use the following snippet-add_action( 'begin_wcfm_dashboard', function() { global $WCFM; if ( wcfm_is_vendor() ) { remove_action( 'after_wcfm_dashboard_product_stats', array( $WCFM->wcfm_notification, 'wcfm_dashboard_notification_list' ) ); remove_action( 'after_wcfm_dashboard_zone_analytics', array( $WCFM->wcfm_enquiry, 'wcfm_dashboard_enquiry_list' ) ); } } ); add_action( 'after_wcfm_dashboard_left_col', function () { if ( wcfm_is_vendor() ) { add_filter( 'wcfm_is_allow_reports', 'disallow_vendor_report_viewing' ); } } ); add_action( 'after_wcfm_dashboard_zone_analytics', function() { if ( wcfm_is_vendor() ) { remove_filter( 'wcfm_is_allow_reports', 'disallow_vendor_report_viewing' ); } } ); function disallow_vendor_report_viewing($is_allowed) { 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/
Let me know how this goes.
Thanks! - April 25, 2020 at 2:02 pm #122852contact8732ParticipantThis reply has been marked as private.
- April 25, 2020 at 2:20 pm #122870contact8732ParticipantThis reply has been marked as private.
- AuthorPosts
Viewing 5 reply threads
- You must be logged in to reply to this topic.