Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Download the plugin ZIP file
  2. Navigate to WordPress Admin > Plugins > Add New
  3. Click "Upload Plugin" and select the downloaded ZIP file
  4. 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

  1. When tags are applied to any user, the plugin checks if they are a group leader
  2. If they are a leader, it checks if any of the applied tags match the payment-related keywords
  3. If payment tags are detected, the plugin applies those same tags to all students in the groups led by that user
  4. Similarly, when payment tags are removed from a group leader, the same tags are removed from their students
  5. 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.

About

A WordPress plugin that automatically syncs payment-related tags between LearnDash group leaders and their students.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages