public static function path($type) { if (empty(self::$paths)) { self::$paths = array('theme' => get_template_directory() . '/', 'wp-content' => WP_CONTENT_DIR, 'plugin' => WP_CONTENT_DIR . '/plugins', 'root' => ABSPATH, 'admin' => ABSPATH . '/wp-admin/', 'library' => get_template_directory() . '/library/', 'classes' => get_template_directory() . '/library/classes/'); } return self::$paths[$type]; }