Skip to content

How To Change The Set Featured Image Text In WordPress

By default, the text on the WordPress thumbnail meta box is – Set featured image. It’s really easy to change the set featured image text to a custom text. It make sense to change the default text to something more user-friendly, as post thumbnail is more common in blogging.

Add following code to your current theme’s functions.php file:

function change_featured_image_text( $content ) {
    return $content = str_replace( __( 'Set featured image' ), __( 'Set post thumbnail' ), $content);
}
add_filter( 'admin_post_thumbnail_html', 'change_featured_image_text' );

Leave a Reply

Your email address will not be published. Required fields are marked *