Replace commentbox and allow wordpress comment
-
Hellow,
I’ve searched for replacing the comment box of facebook and I found this sollution:
Functions.php
add_action(‘wp’, ‘move_fb_comments’, 999999);
function hook_fb_comments_form() {
do_action(‘the_fb_comment_form’);
}
function move_fb_comments() {
$priority = apply_filters( ‘facebook_content_filter_priority’, 30 );
remove_filter( ‘the_content’, array( ‘Facebook_Comments’, ‘the_content_comments_box’ ), $priority );
add_filter( ‘the_fb_comment_form’, ‘Facebook_Comments::the_content_comments_box’, 30);
}comments.php
<?php echo apply_filters(‘the_fb_comment_form’, NULL); ?>
So that works but now I need to enable the wordpress comment as well.
Or an easy way to merge them.Thanks,
Jesse Bakker
- The topic ‘Replace commentbox and allow wordpress comment’ is closed to new replies.