function report_page() { global $wpdb; dokan_reports_scripts(); include dirname(__FILE__) . '/reports.php'; }
<?php /** * Template Name: Dashboard - Reports */ dokan_redirect_login(); dokan_redirect_if_not_seller(); get_header(); dokan_reports_scripts(); ?> <?php dokan_get_template(dirname(__FILE__) . '/dashboard-nav.php', array('active_menu' => 'report')); ?> <div id="primary" class="content-area col-md-10"> <div id="content" class="site-content" role="main"> <?php while (have_posts()) { the_post(); ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> >