这将在more
贴子页面上的标记区域:
add_filter(\'the_content\', \'adds_block\');
function adds_block($content) {
if (is_single()) {
// return $content;
global $post;
$thePostID = $post->ID;
$test = \'<span id="more-\' .$thePostID.\'"></span>\';
return str_replace($test, ads(), $content);
}
}
function ads(){
return \'Your Custom Code,,\';
}