Weak hands cannot be planted, meager skills have no foundation. Shallow wisdom is futile, how can one hope for a good name?扰扰从役倦，屑屑身事微。少壮轻年月，迟暮惜光辉。
<html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><?php
/**
 * Registers Akismet abilities with the WordPress Abilities API.
 *
 * @package Akismet
 * @since 5.7
 */

declare( strict_types = 1 );

// Load ability interface and classes.
require_once __DIR__ . '/abilities/interface-akismet-ability.php';
require_once __DIR__ . '/abilities/class-akismet-ability.php';
require_once __DIR__ . '/abilities/class-akismet-ability-get-stats.php';
require_once __DIR__ . '/abilities/class-akismet-ability-comment-check.php';

/**
 * Class Akismet_Abilities
 *
 * Registers Akismet abilities with the WordPress Abilities API.
 * Provides abilities for spam detection and comment moderation.
 */
class Akismet_Abilities {

	/**
	 * The category slug for Akismet abilities.
	 *
	 * @var string
	 */
	const CATEGORY_SLUG = 'akismet';

	/**
	 * Initialize the ability registration.
	 *
	 * @return void
	 */
	public static function init() {
		// Register category.
		if ( did_action( 'wp_abilities_api_categories_init' ) ) {
			self::register_category();
		} else {
			add_action( 'wp_abilities_api_categories_init', array( __CLASS__, 'register_category' ) );
		}

		// Register abilities.
		if ( did_action( 'wp_abilities_api_init' ) ) {
			self::register_abilities();
		} else {
			add_action( 'wp_abilities_api_init', array( __CLASS__, 'register_abilities' ) );
		}
	}

	/**
	 * Register the Akismet ability category.
	 *
	 * @return void
	 */
	public static function register_category() {
		if ( ! function_exists( 'wp_register_ability_category' ) ) {
			return;
		