我目前正在使用“the\\u content”过滤器向我的帖子和页面底部添加一些HTML。
但是,我想向少数特定页面添加另一个“the\\u content”过滤器(使用页面ID)。
可以使用多个“the\\u content”筛选器吗?
这是我当前的代码:
add_filter( \'the_content\', \'my_content_filter\' );
function my_content_filter( $content ) {
if ( is_single() || is_page()) {
$content .= \'[html goes here]\';
}
return $content;
}