This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Customize "Read More" text | |
* | |
* @since 1.0.0 | |
* @param string $link | |
* @return string | |
*/ | |
function ja_read_more_text( $link ) { | |
return str_replace( '[Read more...]', 'Continue', $link ); | |
} | |
add_filter( 'get_the_content_more_link', 'ja_read_more_text' ); | |
add_filter( 'the_content_more_link', 'ja_read_more_text' ); |
Questions, comments, or suggestion for improvement? Leave a comment on the GitHub Gist page.