Hi Sir,
In the article “Remove Post Meta Details” the author explains how to change default english text, but the instructions seem to be outdated; the code that is suggested doesn’t work…
//Change meta text
add_filter('tc_meta_utility_text', 'rdc_meta_utility_text');
function rdc_meta_utility_text($output) {
// CHANGE TO DEFAULT TEXT IF NON-ENGLISH LANGUAGE
$oldentry1 = 'This entry ';
$oldposted1 = 'was posted in ';
$oldposted2 = 'was posted on ';
$oldtagged1 = 'and tagged ';
$olddate1 = 'on ';
$oldby1 = 'by ';
$oldfullstop = '.';
// CHANGE TO DEFAULT TEXT IF NON-ENGLISH LANGUAGE
// Edit this wording to your needs, to remove completely use ''
$newentry1 = 'This entry ';
$newposted1 = 'was posted in '; // Category
$newposted2 = 'was posted on ';
$newtagged1 = 'and tagged '; // Tag
$newdate1 = 'on '; // Date
$newby1 = 'by '; // Author
$newfullstop = '.';
// Edit above wording only
return str_replace(array(
$oldentry1, $oldposted1, $oldposted2, $oldtagged1, $olddate1, $oldby1, $oldfullstop
), array(
$newentry1, $newposted1, $newposted2, $newtagged1, $newdate1, $newby1, $newfullstop
), $output);
}
Maybe the variables $oldentry1, $oldposted1, $oldposted2, $oldtagged1 etc. are changed…? is it possible? Can you tell me what’s wrong? Thanks for your help and your great job!