Reputation::trash_answer( integer $post_id, object $_post )

Description #

Update reputation when a answer is deleted.

Parameters #

  • $post_id
    integer (Required) Post ID.
  • $_post
    object (Required) Post object.

Source #

File: addons/reputation/reputation.php

	public function trash_answer( $post_id, $_post ) {
		ap_delete_reputation( 'answer', $post_id, $_post->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