Reputation::unselect_answer( object $_post )
Description #
Award reputation when user get an upvote.
Parameters #
- $_postobject (Required) Post object.
Source #
File: addons/reputation/reputation.php
public function unselect_answer( $_post ) { ap_delete_reputation( 'best_answer', $_post->ID, $_post->post_author ); $question = get_post( $_post->post_parent ); ap_delete_reputation( 'select_answer', $_post->ID, $question->post_author ); }
Expand full source code Collapse full source code View on GitHub: addons/reputation/reputation.php:345
Add your comment