Reputation::new_question( integer $post_id, WP_Post $_post )

Description #

Add reputation for user for new question.

Parameters #

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

Source #

File: addons/reputation/reputation.php

	public function new_question( $post_id, $_post ) {
		ap_insert_reputation( 'ask', $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