# Use the Small Twitter Card in All in One SEO

> Switches the X (Twitter) card All in One SEO outputs to the compact summary card with a square thumbnail.

- Type: PHP
- Runs: Frontend only
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: aioseo, twitter, social
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/aioseo-twitter-summary-card/

## Code

```php
add_filter( 'aioseo_twitter_tags', function ( $tags ) {
    if ( is_array( $tags ) ) {
        $tags['twitter:card'] = 'summary';
    }

    return $tags;
} );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Use the Small Twitter Card in All in One SEO" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
