Created
April 11, 2019 14:59
-
-
Save AndrewGehman/b4fd5b581c24aa59cad282da5a2d655f to your computer and use it in GitHub Desktop.
Add Text to the Featured Image Meta Box in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add text to the Featured Image Box | |
function ChangeFeaturedImageText( $content ) { | |
$img_size_text = "Size ratio: 400 x 300"; | |
return $content . $img_size_text; | |
} | |
add_filter( 'admin_post_thumbnail_html', 'ChangeFeaturedImageText' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful for providing clients with information such as ideal dimensions for images