Code
This file contains hidden or 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 | |
function custom_content_more_link( $output ) { | |
$output = preg_replace('/#more-[\d]+/i', '', $output ); | |
return $output; | |
} | |
add_filter( 'the_content_more_link', 'custom_content_more_link' ); | |
?> |
Description | 「続きを読む」のリンク先にハッシュタグが付くのを防ぐ |
---|---|
WordPress Ver. | 3.3.1 |
Via | – |