| @@ -68,9 +68,14 @@ | ||
| 68 | 68 | charitable_admin_view( 'reports/analytics' ); |
| 69 | 69 | break; |
| 70 | 70 | |
| 71 | 71 | default: |
| 72 | - charitable_admin_view( 'reports/overview' ); | |
| 72 | + // Allow add-on tabs (registered via the charitable_reports_tabs filter) to render their content. | |
| 73 | + if ( has_action( 'charitable_reports_tab_' . $active_tab ) ) { | |
| 74 | + do_action( 'charitable_reports_tab_' . $active_tab ); | |
| 75 | + } else { | |
| 76 | + charitable_admin_view( 'reports/overview' ); | |
| 77 | + } | |
| 73 | 78 | break; |
| 74 | 79 | } |
| 75 | 80 | |
| 76 | 81 | /** |