Akismet::spam_post_action( integer $post_id )

Description #

Action to do when post is marked as a spam.

Parameters #

  • $post_id
    integer (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,
		) );
	}

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