/** * Get the running object * * @return Myprefix_Network_Admin **/ public static function get_instance() { if (is_null(self::$instance)) { self::$instance = new Myprefix_Network_Admin(); self::$instance->hooks(); } return self::$instance; }
/** * Helper function to get/return the Myprefix_Network_Admin object * @since 0.1.0 * @return Myprefix_Network_Admin object */ function myprefix_network_admin() { static $object = null; if (is_null($object)) { $object = new Myprefix_Network_Admin(); $object->hooks(); } return $object; }