An open API service indexing awesome lists of open source software.

https://github.com/verygoodplugins/wp-fusion-custom-snippets

Custom code snippets for WP Fusion
https://github.com/verygoodplugins/wp-fusion-custom-snippets

Last synced: 4 months ago
JSON representation

Custom code snippets for WP Fusion

Awesome Lists containing this project

README

          

# WP Fusion Custom Snippets

![WP Fusion Logo](https://wpfusion.com/wp-content/uploads/2019/08/logo-top-svg.svg)

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

[![WordPress Sites](https://img.shields.io/badge/Powering-38%2C000%2B%20Sites-orange)](https://wpfusion.com?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets)
[![CRMs Supported](https://img.shields.io/badge/CRMs%20Supported-60%2B-blue)](https://wpfusion.com/documentation/getting-started/crm-compatibility/?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets)
[![Plugin Integrations](https://img.shields.io/badge/Plugin%20Integrations-150%2B-green)](https://wpfusion.com/documentation/?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets)
[![License](https://img.shields.io/badge/License-GPL%20v3-lightgrey)](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](https://wpfusion.com/pricing/?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets) | [Documentation](https://wpfusion.com/documentation/?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets) | [Support](https://wpfusion.com/contact/?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets) | [Join Community](https://www.facebook.com/groups/wpfusion/)

---

## 🎯 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](#-quick-start)
- [Installation Methods](#-installation-methods)
- [Snippet Categories](#-snippet-categories)
- [Featured Snippets](#-featured-snippets)
- [Usage Guidelines](#-usage-guidelines)
- [Contributing](#-contributing)
- [Resources & Support](#-resources--support)

## πŸš€ Quick Start

Get up and running in minutes:

1. **Have WP Fusion installed** ([Get it here](https://wpfusion.com/pricing/?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets) or start with [WP Fusion Lite](https://wordpress.org/plugins/wp-fusion-lite/))
2. **Browse our [snippet categories](#-snippet-categories)** to find what you need
3. **Choose an [installation method](#-installation-methods)** 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`:

```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

**Built with 🧑 by [Jack Arturo](https://github.com/verygoodplugins) at [Very Good Plugins](https://verygoodplugins.com?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets)**

*Made with love for the WordPress open-source community*

[Website](https://wpfusion.com?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets) β€’ [Documentation](https://wpfusion.com/documentation/?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets) β€’ [Support](https://wpfusion.com/contact/?utm_source=github&utm_medium=readme&utm_campaign=custom-snippets) β€’ [Facebook Group](https://www.facebook.com/groups/wpfusion/)