• Resolved omriamos

    (@omriamos)


    It seems that the comments import from Facebook creates the comments, but doesn’t trigger the “comment_post” hook, so my other plugins that calls “add_action( ‘comment_post’…” doesn’t work on these comments.

    Any way to fix this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Don’t have an answer but I suspect if it called the comment_post hook it would help wp super cache clear that pages cache as well.

    Thread Starter omriamos

    (@omriamos)

    I’ve ended up fixing this myself, by changing this line:
    else $cmntID = wp_insert_comment($cmnt);

    to this:
    else { $cmntID = wp_insert_comment($cmnt); do_action( ‘comment_post’, $cmntID, $cmnt[‘comment_approved’] ); }

    in the file: nxs_functions.php

    I send them a ticket about this, hopefully they will fix that for future versions.

    Plugin Author NextScripts

    (@nextscripts)

    We will add that to the 3.7.5

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘comments import from Facebook doesn’t trigger the comment_post hook’ is closed to new replies.