dashboard extra page error | WordPress.org

[ad_1]

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.

Editing The 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;

}

https://prnt.sc/oKupcVUeice2

Now I can see the link showing up on the dashboard.

https://prnt.sc/-wf0jPqGI3YL

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…

https://prnt.sc/vKyDR0SBGV6p

not sure what is missing here…. Do you see anything missing here ?

Thank you

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer