Function to Change Custom ‘Read more’ Text

* code #2 - replace 'Read more' text with new string same URL
* @param string
* @return string
function new_excerpt_more($text)
return ' [...]';
add_filter('excerpt_more', 'new_excerpt_more');

This is another quick snippet you can use to replace the default more text. You will notice this on your blog homepage when you have posts which are longer than the character limit, this will display a permalink to the article. Just replace the string to whatever output you’d like.