您可以将此示例放入函数中。php文件:
function insertContent($content) {
$content.= "<div>";
$content.="additional content";
$content.= "</div>";
return $content;
}
// put this line in your custom function or in your template file (single)
add_filter (\'the_content\', \'insertContent\');
再见!