π Extend the Power of WordPress's #1 Marketing Automation Plugin
A curated collection of custom code snippets to extend and enhance WP Fusion functionality. Ready-to-use solutions that unlock even more possibilities for your marketing automation workflows.
WP Fusion is the most powerful and flexible marketing automation plugin for WordPress. It connects your WordPress site to your CRM or marketing automation platform, creating seamless two-way data sync that transforms how you engage with your audience.
- π 60+ CRM Integrations - From HubSpot to ActiveCampaign, Salesforce to Mailchimp, we've got you covered
- π§© 150+ Plugin Integrations - Deep integration with WooCommerce, LearnDash, MemberPress, BuddyBoss, and more
- β‘ Real-Time Sync - Instant data synchronization keeps your CRM always up-to-date
- π― Smart Automation - Trigger actions based on user behavior, purchases, course progress, and more
- π Content Personalization - Show different content to different users based on CRM tags
- π οΈ Developer Friendly - Extensive hooks, filters, and this snippet library for endless customization
WP Fusion isn't just a pluginβit's a platform. Built on WordPress's open architecture, it's infinitely extensible through custom code. This repository showcases that extensibility with battle-tested snippets from our community of developers and power users.
- Quick Start
- Installation Methods
- Snippet Categories
- Featured Snippets
- Usage Guidelines
- Contributing
- Resources & Support
Get up and running in minutes:
- Have WP Fusion installed (Get it here or start with WP Fusion Lite)
- Browse our snippet categories to find what you need
- Choose an installation method that fits your workflow
- Copy, customize, and deploy - Each snippet includes detailed documentation
Three ways to add these snippets to your site - choose what works best for you:
Best for: Quick testing, simple customizations
Add snippets directly to your theme's functions.php:
// Add to your theme's functions.php (preferably in a child theme)
add_action( 'wpf_tags_modified', 'my_custom_function', 10, 2 );
function my_custom_function( $user_id, $tags ) {
// Your custom logic here
}Best for: Production sites, version control, portability
Create a custom plugin for your snippets:
<?php
/**
* Plugin Name: WP Fusion Custom Extensions
* Description: Custom functionality extending WP Fusion
* Version: 1.0.0
* Author: Your Name
*/
// Prevent direct access
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Your custom snippets hereSave as /wp-content/plugins/wpf-custom/wpf-custom.php and activate
Best for: Non-developers, conditional logic, easy management
- Install FluentSnippets
- Add snippets through the visual interface
- Set conditions and manage activation states
- Zero database queries - snippets stored as files
Organized by functionality for easy discovery:
π Access Control
Manage content restrictions, redirects, and user permissions
- LearnDash redirects, IP-based unlocks, login customizations
π Activity Tracking
Advanced user behavior tracking and attribution
- UTM tracking, lead source sync, engagement metrics
π§ API Extensions
Enhance WP Fusion's API capabilities
- Performance optimizations, webhook management, custom methods
π€ Automation Workflows
Create sophisticated automation triggers
- Pageview tracking, visit-based tags, content engagement
WooCommerce and e-commerce enhancements
- Subscription tracking, custom order statuses, event sync
π₯ User Management
User data handling and personalization
- Dynamic styling, custom fields, role management
Popular solutions from our community:
Track new subscriptions in HubSpot with timestamps for time-based reporting
Smart redirects that remember where users came from
Speed up login times with slow CRMs
Prevent infinite webhook loops in your automations
β Always:
- Create a full backup
- Test on staging first
- Read the documentation
- Check WP Fusion version compatibility
β Never:
- Test on production sites
- Mix incompatible snippets
- Ignore error messages
// Always check dependencies
if ( ! class_exists( 'WP_Fusion' ) ) {
return;
}
// Use proper namespacing
if ( ! function_exists( 'wpf_custom_function' ) ) {
function wpf_custom_function() {
// Your code here
}
}We love contributions from our community! Here's how to share your snippets:
- Fork this repository
- Create a feature branch (
git checkout -b feature/amazing-snippet) - Add your snippet with documentation
- Test thoroughly
- Submit a pull request
Contribution must include:
- Clear documentation
- Usage examples
- Compatibility notes
- Test coverage
- π Getting Started Guide
- π CRM Setup Guides
- π οΈ Developer Documentation
- π¨ Brand Assets
- π¬ Facebook Community - 5,000+ members strong
- π§ Priority Support - For license holders
- π GitHub Issues - Bug reports and feature requests
- πΊ YouTube Tutorials - Video walkthroughs
- β 60+ CRM integrations
- β User data sync
- β Basic automation
- Get it on WordPress.org
- β Everything in Lite
- β 150+ plugin integrations
- β Advanced automation
- β E-commerce tracking
- β Priority support
- β 30-day money-back guarantee
These snippets are provided as-is for educational and development purposes. Always test in a staging environment before implementing on production sites. The authors are not responsible for any issues that may arise from using these code snippets.
This project is licensed under the GPL v3 or later - see the LICENSE file for details.
Built with π§‘ by Jack Arturo at Very Good Plugins
Made with love for the WordPress open-source community
Website β’ Documentation β’ Support β’ Facebook Group