PluginProbe ʕ •ᴥ•ʔ
Akismet Anti-spam: Spam Protection / 5.7
Akismet Anti-spam: Spam Protection v5.7
5.7 3.0.4 3.0.5 3.1 3.1.1 3.1.10 3.1.11 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2 3.3 3.3.1 3.3.2 3.3.3 3.3.4 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.1 4.1.1 4.1.10 4.1.11 4.1.12 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 5.0 5.0.1 5.0.2 5.1 5.2 5.3 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.7 5.4 5.5 5.6 trunk 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.4.0 2.4.1 2.5.0 2.5.1 2.5.10 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 3.0.0 3.0.0-RC1 3.0.1 3.0.2 3.0.3
akismet / akismet.php
akismet Last commit date
_inc 1 month ago abilities 1 month ago views 1 month ago .htaccess 1 month ago LICENSE.txt 10 years ago akismet.php 1 month ago changelog.txt 1 year ago class-akismet-abilities.php 1 month ago class-akismet-compatible-plugins.php 9 months ago class-akismet-connector.php 1 month ago class.akismet-admin.php 1 month ago class.akismet-cli.php 1 year ago class.akismet-rest-api.php 2 months ago class.akismet-widget.php 7 months ago class.akismet.php 1 month ago index.php 1 year ago readme.txt 1 month ago wrapper.php 1 year ago
akismet.php
94 lines
1 <?php
2 /**
3 * @package Akismet
4 */
5 /*
6 Plugin Name: Akismet Anti-spam: Spam Protection
7 Plugin URI: https://akismet.com/
8 Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
9 Version: 5.7
10 Requires at least: 5.8
11 Requires PHP: 7.2
12 Author: Automattic - Anti-spam Team
13 Author URI: https://automattic.com/wordpress-plugins/
14 License: GPLv2 or later
15 Text Domain: akismet
16 */
17
18 /*
19 This program is free software; you can redistribute it and/or
20 modify it under the terms of the GNU General Public License
21 as published by the Free Software Foundation; either version 2
22 of the License, or (at your option) any later version.
23
24 This program is distributed in the hope that it will be useful,
25 but WITHOUT ANY WARRANTY; without even the implied warranty of
26 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 GNU General Public License for more details.
28
29 You should have received a copy of the GNU General Public License
30 along with this program; if not, write to the Free Software
31 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32
33 Copyright 2005-2025 Automattic, Inc.
34 */
35
36 // Make sure we don't expose any info if called directly
37 if ( ! function_exists( 'add_action' ) ) {
38 echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
39 exit;
40 }
41
42 define( 'AKISMET_VERSION', '5.7' );
43 define( 'AKISMET__MINIMUM_WP_VERSION', '5.8' );
44 define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
45 define( 'AKISMET_DELETE_LIMIT', 10000 );
46
47 register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );
48 register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) );
49
50 require_once AKISMET__PLUGIN_DIR . 'class.akismet.php';
51 require_once AKISMET__PLUGIN_DIR . 'class.akismet-widget.php';
52 require_once AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php';
53 require_once AKISMET__PLUGIN_DIR . 'class-akismet-compatible-plugins.php';
54
55 add_action( 'init', array( 'Akismet', 'init' ) );
56
57 add_action( 'rest_api_init', array( 'Akismet_REST_API', 'init' ) );
58
59 add_action( 'init', array( 'Akismet_Compatible_Plugins', 'init' ) );
60
61 if ( function_exists( 'wp_get_connectors' ) ) {
62 require_once AKISMET__PLUGIN_DIR . 'class-akismet-connector.php';
63 add_action( 'init', array( 'Akismet_Connector', 'init' ) );
64 }
65
66 /**
67 * Conditionally loads for a WordPress 6.9+ installation, which has
68 * access to the core Abilities API. Only register abilities if Akismet
69 * is set up with an API key (either predefined or configured).
70 */
71 if ( function_exists( 'wp_register_ability' ) ) {
72 require_once AKISMET__PLUGIN_DIR . 'class-akismet-abilities.php';
73 add_action(
74 'init',
75 function () {
76 if ( Akismet::get_api_key() ) {
77 Akismet_Abilities::init();
78 }
79 }
80 );
81 }
82
83 if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
84 require_once AKISMET__PLUGIN_DIR . 'class.akismet-admin.php';
85 add_action( 'init', array( 'Akismet_Admin', 'init' ) );
86 }
87
88 // add wrapper class around deprecated akismet functions that are referenced elsewhere
89 require_once AKISMET__PLUGIN_DIR . 'wrapper.php';
90
91 if ( defined( 'WP_CLI' ) && WP_CLI ) {
92 require_once AKISMET__PLUGIN_DIR . 'class.akismet-cli.php';
93 }
94