WordPressソースコードの表示プラグイン
- 2012年04月27日
- Wordpress
ソースコードの表示用プラグイン。
コピペとか便利になる。
【例】↓↓↓↓↓↓
/* more-linkのハッシュ消し */ 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');
コメントを残す