Skip to content

Instantly share code, notes, and snippets.

Damien Carbery damiencarbery

Block or report user

Report or block damiencarbery

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
damiencarbery / order-details.txt
Last active Jun 21, 2019
WooCommerce REST API authentication: Use Oauth 1 and the WooCommerce REST API to retrieve order details.
View order-details.txt
"id": 7755,
"parent_id": 0,
"number": "7755",
"order_key": "wc_order_YjITxJBWgJIFu",
"created_via": "programatically",
"version": "3.6.4",
"status": "completed",
"currency": "EUR",
"date_created": "2019-06-11T08:58:35",
damiencarbery / grouped-carousel.php
Last active Jun 17, 2019
Use CMB2 to create a carousel: Add photos to multiple groups and randomise group order in a carousel.
View grouped-carousel.php
damiencarbery / ninja-forms-submissions.php
Last active Jun 10, 2019
Display Ninja Forms Submissions - Demonstrate viewing form submission data outside of the admin area.
View ninja-forms-submissions.php
header('HTTP/1.1 200 OK');
define('WP_USE_THEMES', false);
/** Loads the WordPress Environment */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
$id = 3;
damiencarbery / regular-wc-api.php
Created Jun 7, 2019
Trying WooCommerce REST API and then reverting to regular API
View regular-wc-api.php
// Convert ThriveCart order to WooCommerce order.
// ThriveCart order data is passed via ThriveCart Webhook into $_POST.
// By Damien Carbery,,
// $Id: tc-to-wc-order.php 4726 2019-06-07 11:10:43Z damien $
// Avoid warnings about element not being set.
function get_post_parameter( $key, $default ) {
damiencarbery / mk-local-order.php
Last active Jun 3, 2019
Duplicate a ThriveCart order in WooCommerce: Convert ThriveCart order data into a WooCommerce order.
View mk-local-order.php
// Restrict who can access this script.
$permitted_ips = array('', '');
if (in_array($_SERVER['REMOTE_ADDR'], $permitted_ips) == false) {
header('HTTP/1.0 403 Forbidden');
damiencarbery / nf-copy-email-to-hidden.php
Last active May 27, 2019
Ninja Forms - Copy Fields on Submission: Simplify copying Ninja Forms field values between fields early in the submission.
View nf-copy-email-to-hidden.php
Plugin Name: Copy Email field to Hidden
Plugin URI:
Description: Copy the email field to the hidden field using the NinjaFormsCopyFieldsOnSubmission class.
Author: Damien Carbery
Version: 0.1
View playlist-with-download-link.php
damiencarbery / genesis-remove-page-title.php
Created May 22, 2019
Remove the entry-header area on pages. Do not change single posts or archives
View genesis-remove-page-title.php
Plugin Name: Remove page title (Genesis)
Plugin URI:
Description: Remove the entry-header section (with page title, post info and featured image) from pages but not posts or archives.
Author: Damien Carbery
Version: 0.1
damiencarbery / carousel-in-boss-pro.php
Last active May 13, 2019
Replace Boss Pro header with carousel - Liven up the Boss Pro home hero area with a carousel.
View carousel-in-boss-pro.php
damiencarbery / multisite-plugins-activated.php
Last active May 6, 2019
Active Multisite Plugins: List of active plugins on a Multisite installation.
View multisite-plugins-activated.php
Plugin Name: Multisite Plugins Activate
Plugin URI:
Description: List of active plugins on a Multisite installation.
Author: Damien2
// Based on:
You can’t perform that action at this time.