/** * 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; }
/** * Page Template Dashboard * * An easy way to see which templates your pages are using without having to view the page editor. * * @package PTD * @author Your Name <*****@*****.**> * @license GPL-2.0+ * @link http://tommcfarlin.com/page-template-dashboard/ * @copyright 2013 - 2015 Tom McFarlin * * @wordpress-plugin * Plugin Name: Page Template Dashboard * Plugin URI: http://tommcfarlin.com/page-template-dashboard/ * Description: An easy way to see which templates your pages are using without having to view the page editor. * Version: 1.6.0 * Author: Tom McFarlin * Author URI: http://tommcfarlin.com/ * Text Domain: page-template-dashboard-locale * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Domain Path: /lang */ // If this file is called directly, abort. if (!defined('WPINC')) { die; } require_once plugin_dir_path(__FILE__) . 'class-page-template-dashboard.php'; Page_Template_Dashboard::get_instance();