LearnDash WP Fusion Groups Tag Sync
A WordPress plugin that automatically syncs payment-related tags between LearnDash group leaders and their students.
by Very Good Plugins · github.com/verygoodplugins/ld-wpf-groups-tag-sync · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/verygoodplugins/ld-wpf-groups-tag-sync/archive/refs/heads/main.zipReadme
LearnDash WP Fusion Groups Tag Sync
A WordPress plugin that automatically syncs payment-related tags between LearnDash group leaders and their students.
Description
This plugin bridges the gap between LearnDash groups and WP Fusion by ensuring that when group leaders receive payment-related tags (such as "payment failed" or "subscription canceled"), those same tags are automatically applied to all students in their groups. When tags are removed from group leaders, they are also removed from their students.
Key Features
- Automatically syncs payment status tags from group leaders to all their students
- Removes payment status tags from students when removed from group leaders
- Works with multiple groups and nested group hierarchies
- Configurable payment-related tag detection
- Prevents infinite loops when applying or removing tags
- Detailed logging of tag sync operations
Requirements
- WordPress
- LearnDash LMS plugin
- WP Fusion plugin
Installation
- Download the plugin ZIP file
- Navigate to WordPress Admin > Plugins > Add New
- Click "Upload Plugin" and select the downloaded ZIP file
- Activate the plugin
Configuration
The plugin works automatically after installation with default payment-related tag keywords:
- payment failed
- failed payment
- payment canceled
- subscription canceled
- subscription expired
Custom Payment Tags
You can customize which tags are considered payment-related by using the wpf_learndash_payment_sync_tags filter:
add_filter( 'wpf_learndash_payment_sync_tags', function( $tags ) {
// Add custom payment tag keywords
$tags[] = 'invoice overdue';
$tags[] = 'payment declined';
return $tags;
});
How It Works
- When tags are applied to any user, the plugin checks if they are a group leader
- If they are a leader, it checks if any of the applied tags match the payment-related keywords
- If payment tags are detected, the plugin applies those same tags to all students in the groups led by that user
- Similarly, when payment tags are removed from a group leader, the same tags are removed from their students
- The plugin includes safeguards to prevent infinite loops when applying or removing tags
Support
For support, please contact Very Good Plugins or visit WP Fusion.
License
GPL-3.0+
Credits
Developed by Very Good Plugins for WP Fusion.