Skip to content

verygoodplugins/wp-fusion-custom-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

WP Fusion Custom Snippets

WP Fusion Logo

πŸš€ Extend the Power of WordPress's #1 Marketing Automation Plugin

WordPress Sites CRMs Supported Plugin Integrations License

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.

Get WP Fusion | Documentation | Support | Join Community


🎯 What is WP Fusion?

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.

Why 38,000+ Sites Trust WP Fusion

  • πŸ”Œ 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

The Power of Open Source

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.

πŸ“‹ Table of Contents

πŸš€ Quick Start

Get up and running in minutes:

  1. Have WP Fusion installed (Get it here or start with WP Fusion Lite)
  2. Browse our snippet categories to find what you need
  3. Choose an installation method that fits your workflow
  4. Copy, customize, and deploy - Each snippet includes detailed documentation

πŸ› οΈ Installation Methods

Three ways to add these snippets to your site - choose what works best for you:

Method 1: functions.php File

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
}

⚠️ Pro tip: Always use a child theme to preserve customizations during updates

Method 2: Custom Plugin

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 here

Save as /wp-content/plugins/wpf-custom/wpf-custom.php and activate

Method 3: FluentSnippets Plugin

Best for: Non-developers, conditional logic, easy management

  1. Install FluentSnippets
  2. Add snippets through the visual interface
  3. Set conditions and manage activation states
  4. Zero database queries - snippets stored as files

πŸ“ Snippet Categories

Organized by functionality for easy discovery:

Manage content restrictions, redirects, and user permissions

  • LearnDash redirects, IP-based unlocks, login customizations

Advanced user behavior tracking and attribution

  • UTM tracking, lead source sync, engagement metrics

Enhance WP Fusion's API capabilities

  • Performance optimizations, webhook management, custom methods

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

View all 20+ snippets β†’

⭐ Featured Snippets

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

πŸ“– Usage Guidelines

Before Installing Any Snippet:

βœ… 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

Best Practices:

// 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
    }
}

🀝 Contributing

We love contributions from our community! Here's how to share your snippets:

  1. Fork this repository
  2. Create a feature branch (git checkout -b feature/amazing-snippet)
  3. Add your snippet with documentation
  4. Test thoroughly
  5. Submit a pull request

Contribution must include:

  • Clear documentation
  • Usage examples
  • Compatibility notes
  • Test coverage

πŸ“š Resources & Support

Documentation

Getting Help

πŸ’° Pricing & Plans

WP Fusion Lite (Free)

WP Fusion Pro

  • βœ… Everything in Lite
  • βœ… 150+ plugin integrations
  • βœ… Advanced automation
  • βœ… E-commerce tracking
  • βœ… Priority support
  • βœ… 30-day money-back guarantee

View Pricing β†’

⚠️ Disclaimer

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.

πŸ“„ License

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

About

Custom code snippets for WP Fusion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •