• 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_Admin::modify_plugin_description() – When Akismet is active, remove the "Activate Akismet" step from the plugin description.

Description

When Akismet is active, remove the "Activate Akismet" step from the plugin description.

Usage

Akismet_Admin::modify_plugin_description( $all_plugins );

Parameters

$all_plugins
( mixed ) required –

Returns

void

Source

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

1 to 12 of 12
  public static function modify_plugin_description( $all_plugins ) {
    if ( isset( $all_plugins['akismet/akismet.php'] ) ) {
      if ( Akismet::get_api_key() ) {
        $all_plugins['akismet/akismet.php']['Description'] = __( 'Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. Your site is fully configured and being protected, even while you sleep.', 'akismet' );
      }
      else {
        $all_plugins['akismet/akismet.php']['Description'] = __( 'Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started, just go to <a href="admin.php?page=akismet-key-config">your Akismet Settings page</a> to set up your API key.', 'akismet' );
      }
    }
    
    return $all_plugins;
  }
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      Function name: Akismet_Admin::modify_plugin_description
      Class ref: Akismet_Admin
      Plugin ref: Akismet
      Version: 4.1.9
      Sourcefile: class.akismet-admin.php
      File ref: class.akismet-admin.php
      Deprecated?: No
      API Letters: A,D,M,P

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

      Primary Sidebar

      Information

      Function name: Akismet_Admin::modify_plugin_description
      Class ref: Akismet_Admin
      Plugin ref: Akismet
      Version: 4.1.9
      Sourcefile: class.akismet-admin.php
      File ref: class.akismet-admin.php
      Deprecated?: No
      API Letters: A,D,M,P

      Footer

      WordPress a2z
      WordPress a2z
      WordPress Dynamic API Reference
      WordPress 5.7. PHP: 7.3.27
      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-2021. All rights reserved.


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

      • Home
      • Blog
      • Sitemap
      • Sites