Akismet::new_question_answer( integer $post_id )

Description #

Check for spam in content after submission from frontend.

Parameters #

  • $post_id
    integer (Required) Post id.

Source #

File: addons/akismet/akismet.php

	public function new_question_answer( $post_id ) {
		$_post = ap_get_post( $post_id );

		// Return if already a spam or user is admin.
		if ( 'moderate' === $_post->post_status || user_can( $_post->post_author, 'manage_options' ) ) {
			return;
		}

		$this->api_request( $post_id );
	}

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Add your comment