Skip to Content
PHPCODE
Message of featured image in wordpress
wordpress code / October 29, 2022
function add_featured_image_instruction($content) {
global $post;
$post_type = get_post_type();
if($post_type == 'c_news'){
$content .= '<p>Please upload 510 * 575 image size </p>';
}
return $content;
}
add_filter( 'admin_post_thumbnail_html', 'add_featured_image_instruction');
PHPCODE © 2023