Как автоматически пометить новый комментарий к посту как спам?
add_action( 'wp_insert_comment', 'custom_update_comment_status' ); function custom_update_comment_status( $id ) { wp_set_comment_status( $id, 'spam' ); }