# Default Social Image for Jetpack Open Graph Tags

> Sets the image Jetpack uses in Open Graph tags when a post has no featured image or images in its content, so shared links always show your brand instead of a blank square.

- Type: PHP
- Runs: Run everywhere
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: jetpack, open-graph, social
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/jetpack-default-og-image/

## Code

```php
$wpide_image = 'https://example.com/wp-content/uploads/social-default.jpg'; // Fallback image URL.

add_filter( 'jetpack_open_graph_image_default', function () use ( $wpide_image ) {
    return esc_url_raw( $wpide_image );
} );
```

## Notes

Use a full image URL; 1200×630 pixels works best on most networks.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Default Social Image for Jetpack Open Graph Tags" 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/
