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 | |
/** | |
* Replace Excerpt Ellipsis | |
* | |
* @since 1.0.0 | |
* @param strin $content | |
* @return string | |
*/ | |
function ja_remove_except_ellipsis( $content ) { | |
return str_replace( '[…]', '<a href="' . get_permalink() . '" class="continue-reading">Continue Reading→</a>', $content ); | |
} | |
add_filter('the_excerpt', 'ja_remove_except_ellipsis'); |
Questions, comments, or suggestion for improvement? Leave a comment on the GitHub Gist page.