Appointments Panel in Menu

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 6 reply threads
  • Author
    Posts
    • #17739
      info17
      Participant

      hi again:) i like to ad some links to left main menu.
      now this link are in the appointments page (wcfm-appointments-dashboard) see printscreen

      like to Show in left main menu:
      wcfm-appointments-manual
      wcfm-appointments-calendar/?view=week

      replace the existing link Appointments (wcfm-appointments-dashboard) to (wcfm-appointments)
      and i like to hide (Logout) link in left mainmenu

      is 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.
    • #17752
      WCFM Forum
      Keymaster

      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

    • #17754
      info17
      Participant

      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 🙂

    • #17764
      WCFM Forum
      Keymaster

      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

    • #17781
      WCFM Forum
      Keymaster

      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

    • #17787
      info17
      Participant

      awesome support..THANK YOU!!!

    • #17788
      Simha
      Guest

      Welcome 🙂

Viewing 6 reply threads
  • The topic ‘Appointments Panel in Menu’ is closed to new replies.