AnsPress_Reputation_Hooks::vote_down( integer $post_id )
Description #
Award reputation when user recive an down vote.
Parameters #
- $post_idinteger (Required) Post ID.
Source #
File: addons/free/reputation.php
public static function vote_down( $post_id ) { $_post = get_post( $post_id ); ap_insert_reputation( 'received_vote_down', $_post->ID, $_post->post_author ); ap_insert_reputation( 'given_vote_down', $_post->ID ); }
Expand full source code Collapse full source code View on GitHub: addons/free/reputation.php:298
Add your comment