• 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::updated_option() – When the akismet option is updated, run the registration call.

You appear to be a bot. Output may be restricted

Description

When the akismet option is updated, run the registration call.

This should only be run when the option is updated from the Jetpack/WP.com API call, and only if the new key is different than the old key.

Usage

Akismet::updated_option( $old_value, $value );

Parameters

$old_value
( mixed ) required – The old option value.
$value
( mixed ) required – The new option value.

Returns

void

Source

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

1 to 10 of 10
  public static function updated_option( $old_value, $value ) {
    // Not an API call
    if ( ! class_exists( 'WPCOM_JSON_API_Update_Option_Endpoint' ) ) {
      return;
    }
    // Only run the registration if the old key is different.
    if ( $old_value !== $value ) {
      self::verify_key( $value );
    }
  }
 

 View on GitHub View on Trac

Published: 19th December 2019 | Last updated: 19th December 2019

Primary Sidebar

Information

Function name: Akismet::updated_option
Class ref: Akismet
Plugin ref: Akismet
Version: 5.0.1
Sourcefile: class.akismet.php
File ref: class.akismet.php
Deprecated?: No
API Letters: A,O,U

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 6.1.1. PHP: 8.0.28
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-2023. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites