/** * Return an instance of this class. * * @since 1.0.0 * * @return object A single instance of this class. */ public static function get_instance() { // If the single instance hasn't been set, set it now. if (null == self::$instance) { self::$instance = new self(); } // end if return self::$instance; }
<?php /* Plugin Name: Bimbler Minglers Plugin URI: http://www.bimblers.com Description: Plugin to implement functionality to support multuple event categories. i.e. deal with Mingler events. Author: Paul Perkins Version: 0.1 Author URI: http://www.bimblers.com */ // If this file is called directly, abort. if (!defined('WPINC')) { die; } // end if require_once plugin_dir_path(__FILE__) . 'class-bimbler-minglers.php'; Bimbler_Minglers::get_instance();