Skip to content

mc_disable_spam_checking

Joe Dolson edited this page May 15, 2026 · 4 revisions

Disable automatic spam checking (turned on when Akismet is active.)

Auto-generated Example

add_filter(
   'mc_disable_spam_checking',
    function(
        {bool} $disabled,
        {array} $post
    ) {
        // Your code here.
        return $disabled;
    },
    10,
    2
);

Parameters

  • {bool} $disabled True to disable spam checking. Default false.
  • {array} $post Posted event details for checking.

Returns

{bool}

Files

apply_filters( 'mc_disable_spam_checking', false, $post )

← All Hooks

Clone this wiki locally