Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Appointment › Appointments Panel in Menu
- This topic has 6 replies, 3 voices, and was last updated 6 years, 10 months ago by Simha.
- AuthorPosts
- January 11, 2018 at 12:01 pm #17739info17Participant
hi again:) i like to ad some links to left main menu.
now this link are in the appointments page (wcfm-appointments-dashboard) see printscreenlike to Show in left main menu:
wcfm-appointments-manual
wcfm-appointments-calendar/?view=weekreplace the existing link Appointments (wcfm-appointments-dashboard) to (wcfm-appointments)
and i like to hide (Logout) link in left mainmenuis this easy to do or i have to go to core?
thanks again, i think im done after this changes 🙂Attachments:
You must be logged in to view attached files. - January 11, 2018 at 12:49 pm #17752WCFM ForumMember
Hi,
It’s possible to achieve very Easily, please don’t edit any WCFM core files.
But off course custom code required for this, I will send you this in few hours.
Thanks for your patience.
Simha
- January 11, 2018 at 12:54 pm #17754info17Participant
what!! you send me, amazing!! wow
thanks men, i can wait no stress here.maybe an idea for future updates..
sort menu and add custom links to it 🙂 - January 11, 2018 at 3:32 pm #17764WCFM ForumMember
Hi,
Here is your custom code –
function wca_custom_wcfm_menus( $menus ) { global $WCFM; if ( current_user_can( 'manage_appointments' ) ) { if( isset( $menus['wcfm-appointments-dashboard'] ) ) unset( $menus['wcfm-appointments-dashboard'] ); $custom_menus = array( 'wcfm-appointments' => array( 'label' => __( 'Appointments', 'woocommerce-appointments'), 'url' => get_wcfm_appointments_url(), 'icon' => 'clock-o', 'priority' => 20 ), 'wcfm-appointments-calendar' => array( 'label' => __( 'Appointments Calendar', 'woocommerce-appointments'), 'url' => add_query_arg( 'view', 'week', esc_url( get_wcfm_appointments_calendar_url() ) ), 'icon' => 'calendar-check-o', 'priority' => 21 ), 'wcfm-appointments-manual' => array( 'label' => __( 'Manual Appointments', 'woocommerce-appointments'), 'url' => get_wcfm_create_appointments_url(), 'icon' => 'calendar-plus-o', 'priority' => 22 ) ); $menus = array_merge( $menus, $custom_menus ); } return $menus; } add_filter( 'wcfm_menus', 'wca_custom_wcfm_menus', 150 );
Please know me is this resolve your requirement or not!
Thank You
- January 11, 2018 at 4:15 pm #17781WCFM ForumMember
Hi,
There is no such hook/filter to disable logout from left menu, CSS will be the only option for the purpose.
Kindly use this class name to hide that “wcfm_menu_logout”
Thank You
- January 11, 2018 at 5:13 pm #17787info17Participant
awesome support..THANK YOU!!!
- January 11, 2018 at 6:02 pm #17788SimhaGuest
Welcome 🙂
- AuthorPosts
- The topic ‘Appointments Panel in Menu’ is closed to new replies.