Customizing Dashboard 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
    • #30791
      nakedharmonix
      Participant

      Hi

      We refer to this page and customize the menu with the following code.
      https://wclovers.com/documentation/developers-guide/

      After implementing the menu manager, 404 not found frequently occurred.
      On the setting page of the menu manager, the customize menu is increasing.

      (Excerpt)
      $this->endpoints = [
      “affiliates” => [
      ‘label’ => __(‘Affiliates’, ‘dresscloud-ex’),
      ‘icon’ => ‘users’,
      ‘url’ => add_query_arg($lang, get_wcfm_page().’affiliates/index’)
      ]
      ];
      function add_wcfm_endpoints_slug($fields) {
      foreach($this->endpoints as $point => $attr) {
      $fields[$point] = $point;
      }
      return $fields;
      }
      add_filter(‘wcfm_menus’, array( &$this, ‘add_wcfm_dashboard_menus’ ) , 30, 1);

      function add_wcfm_dashboard_menus($wcfm_menus) {
      foreach($this->endpoints as $point => $attr) {
      $wcfm_menus[$point] = $attr;
      }
      return $wcfm_menus;
      }
      add_filter(‘wcfm_

      Regards,
      TK

      Attachments:
      You must be logged in to view attached files.
    • #30797
      WCFM Forum
      Keymaster

      Hi,

      Hope you are using WPML!

      Tell me one thing, do you want to add a new menu option under WCFM Dashboard or also want to have a new screen under dashboard?

      Thank You

    • #30800
      nakedharmonix
      Participant

      Hi,

      Thank you for your early reply
      We have already added menus and are also able to display views.
      But sometimes it gets a 404 error. When checking the menu manager to find the cause, I confirmed that there are multiple same menus in the menu manager.
      I imagine that 404 error has occurred due to this.

      Regards,
      TK

    • #30853
      WCFM Forum
      Keymaster

      Hi,

      “I confirmed that there are multiple same menus in the menu manager.” – kindly show me screenshot of this, which are duplicated items?

      Thank You

    • #30892
      nakedharmonix
      Participant

      Hi
      I am already sending it.
      Regards,

    • #30948
      WCFM Forum
      Keymaster

      Hi,

      Where you have send this?

      Thank You

    • #31281
      nakedharmonix
      Participant

      HI

      Its as ATTACHMENTS.

Viewing 6 reply threads
  • The topic ‘Customizing Dashboard Menu’ is closed to new replies.