• 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::admin_init() –

You appear to be a bot. Output may be restricted

Description

Usage

Akismet_Admin::admin_init();

Parameters

Returns

void

Source

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


Lines:

1 to 20 of 20
  public static function admin_init() {
    if ( get_option( 'Activated_Akismet' ) ) {
      delete_option( 'Activated_Akismet' );
      if ( ! headers_sent() ) {
        $admin_url = self::get_page_url( 'init' );
        wp_redirect( $admin_url );
      }
    }

    load_plugin_textdomain( 'akismet' );
    add_meta_box( 'akismet-status', __('Comment History', 'akismet'), array( 'Akismet_Admin', 'comment_status_meta_box' ), 'comment', 'normal' );

    if ( function_exists( 'wp_add_privacy_policy_content' ) ) {
      wp_add_privacy_policy_content(
        __( 'Akismet', 'akismet' ),
        __( 'We collect information about visitors who comment on Sites that use our Akismet anti-spam service. The information we collect depends on how the User sets up Akismet for the Site, but typically includes the commenter\'s IP address, user agent, referrer, and Site URL (along with other information directly provided by the commenter such as their name, username, email address, and the comment itself).', 'akismet' )
      );
    }
  }
 

 View on GitHub View on Trac

Published: 19th December 2019 | Last updated: 2nd November 2022

Primary Sidebar

Information

Function name: Akismet_Admin::admin_init
Class ref: Akismet_Admin
Plugin ref: Akismet
Version: 5.0.1
Sourcefile: class.akismet-admin.php
File ref: class.akismet-admin.php
Deprecated?: No
API Letters: A,I

Footer

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


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

  • Home
  • Blog
  • Sitemap
  • Sites