• Resolved lelkoun

    (@lelkoun)


    I cannot get a value of $comment_status when I use wp_set_comment_status. What am I doing wrong?

    function sb_copy_ip($comment_id, $comment_status){
    echo $comment_id; //prints the ID
    echo $comment_status; //prints NOTHING
    }
    add_action('wp_set_comment_status', 'sb_copy_ip', 2);

    Thank you.

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

The topic ‘wp_set_comment_status does not work!’ is closed to new replies.