Skip to content

Instantly share code, notes, and snippets.

View tarecord's full-sized avatar
🔨
Hammering Things Into Place

Tanner Record tarecord

🔨
Hammering Things Into Place
View GitHub Profile
@tarecord
tarecord / salesforce_pardot_country_codes.php
Created March 17, 2022 18:57
An array of countries and country codes for Salesforce Pardot
<?php
// List of countries: https://help.salesforce.com/s/articleView?id=000318281&type=1
$countries = [
'AF' => 'Afghanistan',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
@tarecord
tarecord / disable-email.php
Created February 7, 2023 03:22
A plugin that disables all WordPress emails sent using wp_mail()
<?php
/**
* Plugin Name: Disable Email
* Plugin URI: https://www.tannerrecord.com/micro-plugins/disable-email
* Description: A plugin that disables all email sent using <code>wp_mail()</code>.
* Author: Tanner Record
* Author URI: https://www.tannerrecord.com
* Update URI: false
* Version: 1.0
*/
@tarecord
tarecord / .distignore
Created May 29, 2023 20:14
A basic .distignore for a Wordpress plugin using dist-archive WP-CLI package
# A set of files you probably don't want in your WordPress.org distribution
.deploy
.distignore
.DS_Store
.editorconfig
.git
.github
.gitignore
.gitmodules
*.sql
@tarecord
tarecord / lando-with-dist-archive-command.yml
Created February 26, 2024 15:34
Set up lando with WP-CLI's dist-archive-command
name: my-lando-environment
recipe: wordpress
config:
webroot: wordpress
services:
appserver:
build_as_root:
- apt-get update -y && apt-get install -y zip