wpcrm_system_report_content
The wpcrm_system_report_content action displays the content of the report on the individual tabs in WP-CRM System > Reports.
The action uses a global variable $wpcrm_reports_active_tab to determine which tab is currently being viewed. This can determine whether or not the output of your function should be displayed.
add_action( 'wpcrm_system_report_content', 'wpcrm_system_report_project_content' ); function wpcrm_system_report_project_content() { global $wpcrm_reports_active_tab; if ($wpcrm_reports_active_tab == 'project') { include( WP_CRM_SYSTEM_PLUGIN_DIR . '/includes/reports/project-reports.php' ); } }