Skip to content

Instantly share code, notes, and snippets.

View eliasgomezsainz's full-sized avatar

Elías Gómez eliasgomezsainz

View GitHub Profile
@samhotchkiss
samhotchkiss / gitignore-for-wp
Created August 9, 2013 01:35
Basic Gitignore for WordPress
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@dryan1144
dryan1144 / edd_recurring_update_subscription.php
Last active March 20, 2024 11:48
Subscription update callback for Recurring Payments EDD extension
<?php
/***
Make API call if Recurring Payments subscription status has changed
**/
add_action( 'edd_recurring_update_subscription', 'drw_subscription_update_callback', 10, 1);
function drw_subscription_update_callback( $subscription_id = null ) {
@Crocoblock
Crocoblock / jfb-call-hook.php
Last active September 29, 2024 17:24
JetFormBuilder Call Hook action
<?php
add_action( 'jet-form-builder/custom-action/test-hook', function( $request, $action_handler ) {
//get value of field field1
$value = $request['field1'];
//or using jet_fb_context()->resolve_request()
$value = jet_fb_context()->resolve_request()['field1'];
@damiencarbery
damiencarbery / wc-remove-email-order-items-table.php
Created September 18, 2023 10:27
WooCommerce - remove email order details table - Remove the order details table (listing items ordered) from order emails. Optionally remove billing and shipping details.
<?php
/*
Plugin Name: WooCommerce - remove email order details table.
Plugin URI: https://www.damiencarbery.com/2023/09/remove-order-details-from-woocommerce-emails/
Description: Remove the order details table (listing items ordered) from order emails. Optionally remove billing and shipping details.
Author: Damien Carbery
Author URI: https://www.damiencarbery.com
Version: 0.1.20230918
*/