• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Akismet::allow_discard() –

You appear to be a bot. Output may be restricted

Description

Usage

Akismet::allow_discard();

Parameters

Returns

void

Source

File name: akismet/class.akismet.php
Lines:

1 to 8 of 8
  public static function allow_discard() {
    if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
      return false;
    if ( is_user_logged_in() )
      return false;
  
    return ( get_option( 'akismet_strictness' ) === '1' );
  }
 

 View on GitHub View on Trac

Published: 19th December 2019 | Last updated: 14th November 2021

Primary Sidebar

Information

Function name: Akismet::allow_discard
Class ref: Akismet
Plugin ref: Akismet
Version: 4.2.4
Sourcefile: class.akismet.php
File ref: class.akismet.php
Deprecated?: No
API Letters: A,D

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 6.0. PHP: 8.0.20
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites