• Resolved futureyoon

    (@futureyoon)


    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;

    }

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Dear @futureyoon

    As you have added a new link and page you have to flush the permalinks once so that WordPress can read the new permalinks.??

    To Flush the permalinks Go to Wp-Admin > settings > permalinks > select post name and click save change again.

    Thread Starter futureyoon

    (@futureyoon)

    I have done it multiple times but the issue still persists.

    Need further assistance.

    thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘dashboard extra page error’ is closed to new replies.