1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-23 04:13:53 +02:00

Merge pull request #122 from rockaut/master

Update class-plugin-name-admin.php
This commit is contained in:
Tom McFarlin 2013-11-11 15:03:14 -08:00
commit 4a4d3f524d

View file

@ -49,6 +49,15 @@ class Plugin_Name_Admin {
*/ */
private function __construct() { private function __construct() {
/*
* TODO :
*
* - Decomment following lines if the admin class should only be available for super admins
*/
/* if( ! is_super_admin() ) {
return;
} */
/* /*
* Call $plugin_slug from public plugin class. * Call $plugin_slug from public plugin class.
* *
@ -91,6 +100,15 @@ class Plugin_Name_Admin {
*/ */
public static function get_instance() { public static function get_instance() {
/*
* TODO :
*
* - Decomment following lines if the admin class should only be available for super admins
*/
/* if( ! is_super_admin() ) {
return;
} */
// If the single instance hasn't been set, set it now. // If the single instance hasn't been set, set it now.
if ( null == self::$instance ) { if ( null == self::$instance ) {
self::$instance = new self; self::$instance = new self;