deactivate_key example

Akismet::bail_on_activation( $message );
        } elseif ( ! empty( $_SERVER['SCRIPT_NAME'] ) && false !== strpos( $_SERVER['SCRIPT_NAME'], '/wp-admin/plugins.php' ) ) {
            add_option( 'Activated_Akismet', true );
        }
    }

    /** * Removes all connection options * @static */
    public static function plugin_deactivation( ) {
        self::deactivate_key( self::get_api_key() );
        
        // Remove any scheduled cron jobs.         $akismet_cron_events = array(
            'akismet_schedule_cron_recheck',
            'akismet_scheduled_delete',
        );
        
        foreach ( $akismet_cron_events as $akismet_cron_event ) {
            $timestamp = wp_next_scheduled( $akismet_cron_event );
            
            if ( $timestamp ) {
                
Home | Imprint | This part of the site doesn't use cookies.