shvsh > /home/1168859.cloudwaysapps.com/rcyqmhwrmv/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/1168859.cloudwaysapps.com/rcyqmhwrmv/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/1168859.cloudwaysapps.com/rcyqmhwrmv/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php

How to add the link to the Reports Dashboard to different places on your site?

A pre-configured Reports Dashboard is auto-created on your site as soon as the WISDM Reports for LearnDash plugin is installed and activated. This link can be accessed at any time from the WISDM Reports for LearnDash tab > Dashboard Tab of your WordPress admin area.

There is a setting in the plugin that allows you to place the link of this pre-configured Report Dashboard in the header or main menu of your site. You can find this on the same tab as mentioned above or go to your WordPress dashboard/admin area > WISDM Reports for LearnDash > Settings > Add the link of the Reports Dashboard to the header menu. 

It is also extremely simple to place the same link (to the pre-configured Reports Dashboard) at other areas of your website to access from the front-end of the site. 

Here are a few ways in which you can achieve this: 

  • Button linked to the dashboard: 
    • If you wish to use a button that is linked to the WISDM Reports Dashboard on a page or anywhere else on the site, use this shortcode: [wrld_dashboard_link] at the desired location and a button will appear which will directly be linked to the Reports Dashboard. 
    • In case you are using the WISDM Group Reg. plugin, you can easily place the above-mentioned shortcode on the Groups Dashboard Page for your Group Leaders to view their Reports from the same Groups Dashboard Page.
    • Here are a few CSS codes to change the styling of the button:
    • The same shortcode can be used to add the button to the footer.

Background Colour:

button.button.wrld-dashboard-link-btn {
     background-color: #960000;
 }

Text Colour: 

button.button.wrld-dashboard-link-btn {
     color: #000000;
 }

Button Text:  you can use the translation function to change the button text.

  • Add the link to the Reports Dashboard on the WISDM Instructor Role’s Instructor Dashboard
    • We are currently working on a tighter integration between WISDM Reports for LearnDash, WISDM Instructor Role and WISDM Group Reg. for LearnDash which will allow Instructors and Group Leaders to easily check Reports from their respective dashboard originating from these plugins. 

As of today, you can add the below custom code to the functions.php file of your theme or add it as a Snippet in the Code Snippets plugin to add the link of the Reports Dashboard to the Instructor Dashboard from the WISDM Instructor Role plugin:


add_action( 'admin_menu' , 'add_custom_links_to_ir_menu' , 999 );
if ( ! function_exists( 'add_custom_links_to_ir_menu' ) ) {
	function add_custom_links_to_ir_menu() {
		if ( function_exists('wdm_is_instructor') && !wdm_is_instructor()) {
				return;
		} else {
			$reports_page           = get_option( 'ldrp_reporting_page', false );
			$reports_dashboard_link = $reports_page && 'publish'== get_post_status($reports_page) ? get_post_permalink( $reports_page ) : '';
			if ( ! empty( $reports_dashboard_link ) ) {
				add_submenu_page( "learndash-lms", "Reports", "WISDM Reports", "wdm_instructor", $reports_dashboard_link, '');	
			}
		}
	}
}
Updated on July 21, 2022
shvsh > /home/1168859.cloudwaysapps.com/rcyqmhwrmv/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/1168859.cloudwaysapps.com/rcyqmhwrmv/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/1168859.cloudwaysapps.com/rcyqmhwrmv/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php

Was this article helpful?

shvsh > /home/1168859.cloudwaysapps.com/rcyqmhwrmv/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/1168859.cloudwaysapps.com/rcyqmhwrmv/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php

Related Articles