Change set featured image text within admin

Adding this snippet to the functions.php of your wordpress theme will change the “Set featured image” text to “Set default image” or what you would like.

 

 

function custom_admin_post_thumbnail_html( $content ) {
return $content = str_replace( __( 'Set featured image' ), __( 'Set default image' ), $content);
}
add_filter( 'admin_post_thumbnail_html', 'custom_admin_post_thumbnail_html' );

Leave a comment