Skip to content

Instantly share code, notes, and snippets.

@adekbadek
Last active June 28, 2017 13:23
Show Gist options
  • Save adekbadek/c97187611dd198942a18647666a57f55 to your computer and use it in GitHub Desktop.
Save adekbadek/c97187611dd198942a18647666a57f55 to your computer and use it in GitHub Desktop.
<!-- remove link from WP excerpt -->
<!-- https://stackoverflow.com/a/42202343 -->
function new_excerpt_more($more) {
global $post;
remove_filter('excerpt_more', 'new_excerpt_more');
return '';
}
add_filter('excerpt_more','new_excerpt_more', 11);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment