Skip to content

Instantly share code, notes, and snippets.

View bhdd's full-sized avatar

Burt bhdd

  • Dewey Digital
View GitHub Profile
@jakebellacera
jakebellacera / disable-yoast-seo-automatic-og-image-lookup.php
Last active September 8, 2025 20:26
Force Yoast SEO to show the default open graph image in case a feature image isn't set.
<?php
/**
* Plugin Name: Disable Yoast SEO Automatic Open Graph Images
* Plugin URI: https://gist.github.com/jakebellacera/c2aab8f786a0617b27dd4914c70463d4
* Description: Shows the default open graph image in case a feature image isn't set, rather than showing a random image on the page.
* Version: 0.0.0
* Author: Jake Bellacera
* Author URI: https://www.jakebellacera.com/
*/