AnsPress_Reputation_Hooks::unselect_answer( object $_post )
Description #
Award reputation when user get an upvote.
Parameters #
- $_postobject (Required) Post object.
Source #
File: addons/free/reputation.php
public static 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/free/reputation.php:276
Add your comment