Adding link to the dashboard page
-
I have tried to add a custom link to the dashboard page to redirect the the user to a custom page on my website
add_filter('tutor_dashboard/nav_items', 'add_some_links_dashboard'); function add_some_links_dashboard($links){ $links['custom_link'] = [ "title" => __('Custom Link', 'tutor'), "url" => "https://youtube.com", "icon" => "tutor-icon-calender-line", ]; return $links; }
and i used this snippet from your documentation and it worked but there is a problem in the icon that is not displaying and tried to add font awesome classes but also didn’t work .. so what should I do
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Adding link to the dashboard page’ is closed to new replies.