I'm looking to programmatically rate a post just after it's creation.
The process is the following
The post is created, commented and rated in a single action after a post sumbit.
$vote = $_POST['gdsr_int_value']; $post_id = wp_insert_post($arg); $comment_id = wp_insert_comment($data);
What would be the code for the rating in that script?
Thanks for your help.