Plugin Directory

Changeset 3331966


Ignore:
Timestamp:
07/22/2025 07:30:49 AM (5 months ago)
Author:
extrachill
Message:

Release v1.0.4: bbPress integration compatibility fix

CRITICAL FIX:

  • Bot replies now properly fire bbp_new_reply WordPress hook

COMPATIBILITY IMPROVEMENTS:

  • Bot replies now trigger notifications in notification plugins
  • Bot replies now award points in gamification/points systems
  • Bot replies now appear in activity feeds and tracking systems
  • Better integration with bbPress ecosystem plugins

TECHNICAL:

  • Added do_action('bbp_new_reply') after successful bot reply posting
  • Ensures standard WordPress/bbPress integration patterns are followed
  • No breaking changes - purely additive compatibility improvement

This fix resolves issues where bot replies would not trigger:

  • Email notifications (bbPress Subscriptions, etc.)
  • Points systems (myCRED, GamiPress, etc.)
  • User mention notifications
  • Activity logging and tracking
  • Custom bbPress integrations

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@…>

Location:
ai-bot-for-bbpress
Files:
27 added
3 edited

Legend:

Unmodified
Added
Removed
  • ai-bot-for-bbpress/trunk/ai-bot-for-bbpress.php

    r3331926 r3331966  
    44 * Plugin URI:  https://wordpress.org/plugins/ai-bot-for-bbpress/
    55 * Description: AI bot for bbPress forums that can be configured to reply to mentions or keywords.
    6  * Version:     1.0.3
     6 * Version:     1.0.4
    77 * Author:      Chubes
    88 * Author URI:  https://chubes.net
  • ai-bot-for-bbpress/trunk/inc/core/class-ai-bot.php

    r3331926 r3331966  
    134134        } else {
    135135            // error_log( 'AI Bot Info: Successfully posted reply ID ' . $reply_id . ' to topic ID ' . $topic_id );
     136           
     137            // IMPORTANT: Fire the bbp_new_reply hook to ensure compatibility with notification plugins,
     138            // points systems, activity feeds, and other bbPress integrations that expect this hook
     139            do_action( 'bbp_new_reply', $reply_id, $topic_id, $forum_id, array(), $bot_user_id );
     140           
    136141            return $reply_id;
    137142        }
  • ai-bot-for-bbpress/trunk/readme.txt

    r3331926 r3331966  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    104104== Changelog ==
    105105
     106= 1.0.4 =
     107* Fix: Bot replies now properly trigger WordPress hooks (bbp_new_reply) for better integration
     108* Enhancement: Bot replies now work correctly with notification plugins, points systems, and activity feeds
     109* Enhancement: Improved compatibility with bbPress ecosystem plugins that expect standard hooks
     110
    106111= 1.0.3 =
    107112* NEW FEATURE: Forum Access Control - Bot can now be restricted to specific forums only
Note: See TracChangeset for help on using the changeset viewer.