Now, here's a way to modify both the 'Featured Image' title and the 'Set Featured Image' link text.
Just add the follwing code to your theme's functions.php
function customizeFeaturedImageLinkTitle( $content ) {
return $content = str_replace( __('Set featured image'), __('Set DefaultMessage image'), $content);
}
function customizeFeaturedImageTitle($translated) {
return str_ireplace('Featured Image', 'DefaultMessage Image', $translated);
}
add_filter('gettext','catalogph_customizeFeaturedImageTitle');
add_filter('ngettext','catalogph_customizeFeaturedImageTitle');
return $content = str_replace( __('Set featured image'), __('Set DefaultMessage image'), $content);
}
function customizeFeaturedImageTitle($translated) {
return str_ireplace('Featured Image', 'DefaultMessage Image', $translated);
}
add_filter('gettext','catalogph_customizeFeaturedImageTitle');
add_filter('ngettext','catalogph_customizeFeaturedImageTitle');
This worked brilliantly! Thanks for posting this, I looked in a couple different places and none of the solutions worked as well as I needed them to until finding your post.
ReplyDeleteYou rock dude!
I'm glad it worked on your side too. :)
Delete