Reputation::vote_up( integer $post_id )
Description #
Award reputation when user receive an up vote.
Parameters #
- $post_idinteger (Required) Post ID.
Source #
File: addons/reputation/reputation.php
public function vote_up( $post_id ) { $_post = get_post( $post_id ); ap_insert_reputation( 'received_vote_up', $_post->ID, $_post->post_author ); ap_insert_reputation( 'given_vote_up', $_post->ID ); }
Expand full source code Collapse full source code View on GitHub: addons/reputation/reputation.php:356
Add your comment