Skip to content

Instantly share code, notes, and snippets.

View eliasgomezsainz's full-sized avatar

Elías Gómez eliasgomezsainz

View GitHub Profile
@Crocoblock
Crocoblock / jfb-call-hook.php
Last active May 9, 2024 05:52
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'];
@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 ) {
@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