Skip to content

mc_custom_spam_status

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Test spam status before Akismet runs. Returns immediately and shortcircuits tests.

Auto-generated Example

add_filter(
   'mc_custom_spam_status',
    function(
        int $status,
        array $post
    ) {
        // Your code here.
        return $status;
    },
    10,
    2
);

Parameters

  • int $status Numeric status. 0 for valid, 1 for spam.
  • array $post Submitted data from POST.

Returns

int

Files

apply_filters( 'mc_custom_spam_status', 0, $post )

← All Hooks

Clone this wiki locally