Akismet::spam_post_action( integer $post_id )
Description #
Action to do when post is marked as a spam.
Parameters #
- $post_idinteger (Required) Post id.
Source #
File: addons/akismet/akismet.php
public function spam_post_action( $post_id ) {
$opt = ap_opt( 'spam_post_action' );
wp_update_post(
array(
'ID' => $post_id,
'post_status' => $opt,
)
);
}
Expand full source code Collapse full source code View on GitHub: addons/akismet/akismet.php:199
Add your comment