Exemplo n.º 1
0
 /**
  * Main PluginName Instance
  *
  * Ensures only one instance of PluginName is loaded or can be loaded.
  *
  * @todo   Replace 'Plugin_Name' with the name of your plugin class.
  * @return object self::instance The one true Plugin_Name
  * @see    Plugin_Name()
  * @access public static
  * @since  1.0.0
  */
 public static function instance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new Plugin_Name();
         self::$_instance->setup_constants();
         self::$_instance->load_plugin_textdomain();
         self::$_instance->includes();
     }
     return self::$_instance;
 }