/** * points the class * * @access public * @since 0.0.1 * @return object */ public function get_object() { if (NULL === self::$classobj) { self::$classobj = new self(); } return self::$classobj; }
<?php /** * Plugin Name: WordPress Admin Style * Plugin URI: https://github.com/bueltge/WordPress-Admin-Style * Text Domain: wp_admin_style * Domain Path: /languages * Description: Shows the WordPress admin styles on one page to help you to develop WordPress compliant * Author: Frank Bültge * Version: 1.3.0 * Licence: GPLv2+ * Author URI: http://bueltge.de * Last Change: 2015-06-18 */ !defined('ABSPATH') and exit; add_action('plugins_loaded', array(Wp_Admin_Style::get_instance(), 'plugin_setup')); class Wp_Admin_Style { protected $patterns_dir = ''; protected $file_replace = array('.php', '_', '-', ' '); /** * Constructor * * @since 0.0.1 * @return Wp_Admin_Style */ public function __construct() { } /** * Used for regular plugin work.