Reputation::unselect_answer( object $_post )

Description #

Award reputation when user get an upvote.

Parameters #

  • $_post
    object (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 );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment