dashboard extra page error
-
Hi
I would like to ask your little assistance here.
I am trying to add a new section in the dashboard. so I followed this doc.
https://docs.themeum.com/tutor-lms/developers/editing-tutor-dashboard/
I added the following line in the code snippet.
add_filter(‘tutor_dashboard/nav_items’, ‘add_some_links_dashboard’);
function add_some_links_dashboard($links){
$links[‘custom-link’] = [
“title” => __(‘Custom Link’, ‘tutor’),
“icon” => “tutor-icon-calender-line”,
];
return $links;
}
Now I can see the link showing up on the dashboard.
and I added a new custom-link.php file under the folder of /wp-content/plugins/tutor/templates/dashboard/
In the custom-link.php file
<?php
/**
* @package TutorLMS/Templates
* @version 1.4.3
*/
global $post; ?>
<h3><?php _e(‘hello’, ‘tutor’); ?></h3>
but when I click the link on the menu item, it throws 404 error…
not sure what is missing here…. Do you see anything missing here ?
Thank you
- The topic ‘dashboard extra page error’ is closed to new replies.