I clearly didn’t know how to google, as this page already explains how to do exactly what I wanted. Adapting it a bit, for it to work with different post types, I came up with the following:
add_action('do_meta_boxes', 'replace_featured_image_box');
function replace_featured_image_box()
{
$post_types = array('bwps', 'page', 'post');
foreach( $post_types as $post_type ) {
remove_meta_box( 'postimagediv', $post_type, 'side' );
add_meta_box('postimagediv', __('Featured Image <small style="opacity: .6">500*500</small>'), 'post_thumbnail_meta_box', $post_type, 'side', 'low');
}
}
Related Posts:
- How can I get the title attribute from get_the_post_thumbnail()?
- Set Featured Image for Archive templates
- How can I add a set featured image function to a theme that doesn’t already have it built in?
- Theme editor not showing correct index.php
- How do you get thumbnails to show up in the admin edit post?
- 100% width Featured Image Size
- Is it possible to create child themes using the WordPress Dashboard?
- Featured images, am I missing something?
- How can I manually activate my previous theme without browser access to dashboard?
- Change avatar on themed profile page
- Recommended Media Size for Twenty Fourteen
- get_the_post_thumbnail() produces different HTML on same arguments
- Widgets not showing on sidebars
- Migrating a website using custom image tags to use featured images instead
- remove theme’s name from dashboard .. How?
- Why does an ad page open when I browse my websites’s wp-admin page?
- WP Snippet to Hide Theme Editor In Dashboard Only Works On LocalHost Site
- How do I get the featured image to sit below the header in the twenty nineteen theme?
- Themes don’t show up in the dashboard -> Appearance -> Themes
- WordPress Dashboard Problem [closed]
- Featured images are cropped on index and post page
- Change theme’s thumbnail to cropped WP featured image
- Theme stops media uploader from working
- How to add/edit content Custom Content item in theme
- Featured image on page is not displayed with certain theme: how to debug this?
- translation does not work for ‘Home’
- Buddypress User Settings template location? [closed]
- How to translate a string that contains a WordPress sitename
- How to code static pages in WordPress
- Is that a malicious code?
- Theme, WordPress Version, MySQL Version, PHP Version Update affected files and folders
- Remove specific plugins and themes from the Dashboard->Updates page [duplicate]
- Color Options from Theme Customizer API not returning via get_theme_mod()
- How can my user make their own Blog/Diary
- Where do I find (free) fully-internationalized themes? [closed]
- How do I manually revert back to my old theme?
- Modifying the markup in the Tag Cloud widget?
- How to trace and resolve a theme problem such as flickering links in WordPress? [closed]
- wp_enqueue_style $dep argument does nothing?
- Child theme looks different from parent theme, and incorrectly displays parts
- Adding an extra sidebar to your theme
- Is it a good practice to disable wpautop for premium themes?
- linking to an svg through comments_popup_link
- How to use custom page templates in a theme that hides page template option?
- Create QuickStart Package for WordPress just like in Joomla
- Create Custom Attachment Template That is Processed from Plugin Folder?
- How to include stylesheet in custom admin using parent_slug
- After installing a free theme, my wordpress turns into text mode when accessing remotely
- why is this script not working on my site
- is theme network enabled?
- How would I got about calling a php file every time someone publishes a new post?
- Custom theme – pages in menu
- remove preloader in WordPress theme [closed]
- Pharmacare theme login page / login modal redirection to custom URL
- Flexslider in child theme
- How to edit the default comment title?
- Why my function.php file in theme delete automatically? [closed]
- How to reverse the pagination numbers of an archive?
- Theme translates the_author_posts_link. How can I remove their translation?
- theme installation not working
- Changing a parent theme safely
- Trying to create a child theme with plugin
- Theme CSS missing completely
- How to implement this layout?
- WordPress customizer extremely slow, cant work in it
- Missing privacy policy checkbox on login page (using Enfold theme)
- How exactly does WordPress load themes from api.wordpress.org?
- Let custom text widget use the same font as the theme
- SSL errors when I activate my custom theme
- Theme-based character encoding issue
- Linkedin not returning right info
- Is there significant risk in not keeping a theme updated? [closed]
- Sticky header for wordpress changes size and logo size as I scroll down
- WordPress theme directory naming
- How to assign a Category to a Page, when both are created on theme initiation?
- Copy from wordpress for dev gives different output in browser
- When translating not all string are present in POedit
- How to retrieve images attached to post through media library?
- adding a unique page to an existing site
- How to fetch the no. of Users dynamically?
- spacing disappears on posts when importing
- Create a child Theme or custom Theme
- Capcha not getting displayed
- Show post thumbnail only if it exists using timthumb
- how to get rid of header banner buttons on child themes [closed]
- Add a header widget to the twentyfourteen theme?
- Theme URLs problem
- Static front page displaying twice
- Changing appearance of WooCommerce product layout [closed]
- Starting fresh on a blank “theme” [closed]
- Mystique theme: widgets on sidebar falling under the page content
- Can’t install vEstate Real Estate WP Themes
- HTML content filtered on blog page
- How can I duplicate this site/get a theme similar to this site? [closed]
- WordPress premiuim [closed]
- My theme switches to “Twenty twenty two” on its own even if deleted
- Check if style is declared in child theme from within parent theme. if so, use that style in parent theme
- Homepage not loading correctly, only after refreshing
- How do I create a post / page without needing get_header() and get_footer()?
- How to cancel style.min.css file?