prefix . 'albert_ability_log'; } /** * The OAuth tables, keyed by role. * * @return array{clients: string, access_tokens: string, refresh_tokens: string, auth_codes: string} * @since 1.2.0 */ public static function oauth(): array { global $wpdb; return [ 'clients' => $wpdb->prefix . 'albert_oauth_clients', 'access_tokens' => $wpdb->prefix . 'albert_oauth_access_tokens', 'refresh_tokens' => $wpdb->prefix . 'albert_oauth_refresh_tokens', 'auth_codes' => $wpdb->prefix . 'albert_oauth_auth_codes', ]; } /** * Every Albert table name, flat. * * @return array All prefixed table names. * @since 1.2.0 */ public static function all(): array { return array_merge( [ self::ability_log() ], array_values( self::oauth() ) ); } }