Esempio n. 1
0
 /**
  * Singleton handling for a basic pods_admin() request
  *
  * @return \PodsAdmin
  *
  * @since 2.3.5
  */
 public static function init()
 {
     if (!is_object(self::$instance)) {
         self::$instance = new PodsAdmin();
     }
     return self::$instance;
 }
Esempio n. 2
0
/**
 * Include and Init the PodsAdmin class
 *
 * @see PodsAdmin
 *
 * @return PodsAdmin
 *
 * @since 2.0
 */
function pods_admin()
{
    require_once PODS_DIR . 'classes/PodsAdmin.php';
    return PodsAdmin::init();
}