我不是wordpress钩子和过滤器的专业人士,因此任何专家都可以帮助我为facebook wordpress插件创建过滤器,以便它在网站上显示评论标题。
插件的url是
http://wordpress.org/support/plugin/facebookand here is the documentation about how to get this solved...
facebook_wp_comments_title
Facebook插件的WordPress实现的评论框社交插件覆盖你的WordPress主题的评论模板,包括评论部分的显示标题。对传递给此过滤器的字符串值进行操作,以影响自定义注释模板中h2.comments-title的内部文本。
您可以这样使用facebook_wp_comments_title
过滤器:
function my_custom_filter( $title ) {
$title = 'Your title goes here';
return $title;
}
add_filter( 'facebook_wp_comments_title', 'my_custom_filter' );
裁判:http://codex.wordpress.org/Function_Reference/add_filter