Akismet::new_question_answer( integer $post_id )
Description #
Check for spam in content after submission from frontend.
Parameters #
- $post_idinteger (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 ); }
Expand full source code Collapse full source code View on GitHub: addons/akismet/akismet.php:216
Add your comment