Skip to content

Instantly share code, notes, and snippets.

@BinaryMoon
Created August 9, 2019 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BinaryMoon/9369e075b2c58df617f71daa367c96b1 to your computer and use it in GitHub Desktop.
Save BinaryMoon/9369e075b2c58df617f71daa367c96b1 to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: Romero Disable Featured Images from Attachments
* Plugin URI: https://prothemedesign.com
* Description: Stop Romero from using attachments as a replacement for featured images if there are no featured images to use.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
* Text Domain: romero
*/
add_filter( 'romero_use_image_attachments', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment