Created
November 14, 2015 08:56
-
-
Save TanvirAmi/d0f6a8c1a5bea4232d57 to your computer and use it in GitHub Desktop.
Change the "more" text of wordpress excerpt.
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 | |
/** | |
* Change the excerpt more string. | |
* @param string $more | |
* @return string | |
*/ | |
function custom_excerpt_more( $more ) { | |
return '…'; | |
} | |
add_filter( 'excerpt_more', 'custom_excerpt_more' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment