Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Customizing Dashboard Menu
Tagged: Customizing Dashboard Menu
- This topic has 6 replies, 2 voices, and was last updated 6 years, 3 months ago by nakedharmonix.
- AuthorPosts
- September 5, 2018 at 1:57 am #30791nakedharmonixParticipant
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,
TKAttachments:
You must be logged in to view attached files. - September 5, 2018 at 4:25 am #30797WCFM ForumMember
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
- September 5, 2018 at 4:43 am #30800nakedharmonixParticipant
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 - September 5, 2018 at 8:03 am #30853WCFM ForumMember
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
- September 5, 2018 at 12:16 pm #30892nakedharmonixParticipant
Hi
I am already sending it.
Regards, - September 6, 2018 at 9:48 am #30948WCFM ForumMember
Hi,
Where you have send this?
Thank You
- September 11, 2018 at 1:17 am #31281nakedharmonixParticipant
HI
Its as ATTACHMENTS.
- AuthorPosts
- The topic ‘Customizing Dashboard Menu’ is closed to new replies.