Skip to content

Instantly share code, notes, and snippets.

View rdbinteractive's full-sized avatar

Robert Bardall rdbinteractive

View GitHub Profile
@rdbinteractive
rdbinteractive / mailchimp.php
Created July 1, 2019 17:25 — forked from toledox82/mailchimp.php
PHP cURL function to add subscriber to MailChimp API 3.0
<?php
$data = [
'email' => $email,
'status' => 'subscribed',
'firstname' => $fname,
'lastname' => $lname
];
function syncMailchimp($data) {
$apiKey = 'XXX';
@rdbinteractive
rdbinteractive / remove-guten-styles.php
Last active January 22, 2019 15:04
Dequeue Gutenberg block styling on the front end.
<?php
/**
* Dequeue Gutenberg block styling on the front end.
*/
if(!is_admin()) :
add_action('wp_enqueue_scripts', 'dequeueGutenStyle');
function dequeueGutenStyle()