/**
  * Register the JavaScript for the admin area.
  *
  * @since    1.0.0
  */
 public function enqueue_scripts()
 {
     /**
      * This function is provided for demonstration purposes only.
      *
      * An instance of this class should be passed to the run() function
      * defined in Plugin_Name_Loader as all of the hooks are defined
      * in that particular class.
      *
      * The Plugin_Name_Loader will then create the relationship
      * between the defined hooks and the functions defined in this
      * class.
      */
     wp_enqueue_script($this->plugin_name . '_participants', Stats::pluginURL('/public/js/hre-stats-public.js'), array('jquery'), $this->version, false);
 }
 public static function render_widget($post, $callback_args)
 {
     include_once Stats::absolutePath('/admin/partials/hre-stats-widget.php');
 }
/**
 * Begins execution of the plugin.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 */
function run_hre_stats()
{
    $plugin = new Stats();
    $plugin->run();
}
 /**
  * Load the plugin text domain for translation.
  *
  * @since    1.0.0
  */
 public function load_plugin_textdomain()
 {
     load_plugin_textdomain($this->domain, false, Stats::relativePath('/languages/'));
 }