Created
January 19, 2021 22:21
-
-
Save bryanrsebastian/ecc11b2afb17227de5f0f25ce98af67d to your computer and use it in GitHub Desktop.
Add an instructions on Featured Image box of the certain Post Type
This file contains hidden or 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 Instructions to Featured Image Box | |
*/ | |
function ration_add_featured_image_html( $html ) { | |
if( get_post_type() === 'tribe_venue' || get_post_type() === 'tribe_events' ) | |
$html .= '<p>Recommended dimension, 1920 x 1080.</p>'; | |
return $html; | |
} | |
add_filter( 'admin_post_thumbnail_html', 'ration_add_featured_image_html'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment