Wordpress对此有一个钩子。以下是示例代码:
function featured_image_dimensions( $content, $post_id, $thumbnail_id ){
$help_text = \'<p>\' . __( \'recommended dimensions - H980px by W450px\', \'my_domain\' ) . \'</p>\';
return $help_text . $content;
}
add_filter( \'admin_post_thumbnail_html\', \'featured_image_dimensions\', 10, 3 );
将此代码添加到函数中。php和您应该可以很好地使用。