Is there a way to accomplish this by the functions.php file ?
I tried:
add_filter( 'gettext', 'change_post_to_article' );
add_filter( 'ngettext', 'change_post_to_article' );
function change_post_to_article( $translated ) {
$translated = str_ireplace( 'Post', 'Article', $translated );
return $translated;
}
but it does not change all the entries for “post”. I still have “Post tags” for example.
Any suggestion?
This is essentially a duplicate of this question:
How to rename default posts-type Posts