Skip to content

Instantly share code, notes, and snippets.

@satrya

satrya/excerpt.php

Created Jun 9, 2015
Embed
What would you like to do?
Change the WordPress excerpt more string
<?php
/**
* Change the excerpt more string.
*
* @since 1.0.0
* @param string $more
* @return string
*/
function prefix_excerpt_more( $more ) {
return '&hellip;';
}
add_filter( 'excerpt_more', 'prefix_excerpt_more' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment