Skip to content

Instantly share code, notes, and snippets.

View reggieofarrell's full-sized avatar

Reggie O'Farrell reggieofarrell

View GitHub Profile
@reggieofarrell
reggieofarrell / ACFSyncFieldGroups.php
Created October 25, 2024 17:47 — forked from hirasso/ACFSyncFieldGroups.php
A WordPress Plugin that allows to sync ACF field groups via WP CLI
<?php
/*
* Plugin Name: ACFSyncFieldGroups
* Plugin URI: https://gist.github.com/hirasso/c48c04def92f839f6264349a1be773b3
* Description: Allows to sync ACF field groups via WP CLI
* Version: 0.0.2
* Author: Rasso Hilber
* Author URI: https://rassohilber.com/
* License: GPL2+
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
@reggieofarrell
reggieofarrell / email-templates-allow-style-tags.php
Last active April 19, 2024 23:17
Simple WP plugin to keep the Email Templates Customizer and Designer for WordPress and WooCommerce from stripping out style tags.
<?php
/*
Plugin Name: Email Templates - Allow Style Tags
Description: Keeps the Email Templates Customizer and Designer for WordPress and WooCommerce from stripping out style tags.
Version: 0.0.1
Author: Reggie O'Farrell
============================================================================================================
This software is provided "as is" and any express or implied warranties, including, but not limited to, the
implied warranties of merchantibility and fitness for a particular purpose are disclaimed. In no event shall
the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or
@reggieofarrell
reggieofarrell / mailpoet-woocommerce-optin-default.php
Last active March 29, 2023 14:50
Default MailPoet opt-in to checked on WooCommerce / Cartflows checkout pages
<?php
/**
* Defaults the MailPoet opt-in checkbox on the WooCommerce and/or
* Cartflows checkout pages to a checked state. Also properly handles
* the checkbox when 'update_checkout' events are fired.
*
* This code could either be placed in the functions.php of the active theme,
* a custom plugin, or be injected via plugins like WP Code or Code Snippets
*/
<?php
/**
* GitHub webhook handler template.
*
* @see https://docs.github.com/webhooks/
* @author Miloslav Hůla (https://github.com/milo)
*/
$hookSecret = 's.e.c.r.e.t'; # set NULL to disable check