Sometimes when outputting the WordPress content or excerpt onto a page using the_content() or the_exerpt(), your setup can result in a “Read More”, or sometimes a “[..]” button being show to display the rest of the content. It is possible to change the default values of these with a simple WordPress hook.

 

add_filter( ‘the_content_more_link’

 The important part here is the name of the hook. This hook runs the function ‘modify_read_more_link’, which simply returns a string with the new read more link and text.

 

add_filter(‘excerpt_more’

 This hook works the same as the one above, but will alter the read more text exclusively for excerpts.