Skip to content

Instantly share code, notes, and snippets.

@takatoshi
Created June 11, 2012 19:34
Show Gist options
  • Save takatoshi/2912172 to your computer and use it in GitHub Desktop.
Save takatoshi/2912172 to your computer and use it in GitHub Desktop.
function remove_more_jump_link($link) {
$offset = strpos($link, '#more-');
if ($offset) {
$end = strpos($link, '"',$offset);
}
if ($end) {
$link = substr_replace($link, '', $offset, $end-$offset);
}
return $link;
}
add_filter('the_content_more_link', 'remove_more_jump_link');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment