Skip to content

Instantly share code, notes, and snippets.

View mrjonwilson's full-sized avatar

Jonathan Wilson mrjonwilson

  • Standing Pine Media, LLC
  • Carthage, MS
View GitHub Profile
@joshfeck
joshfeck / datepicker.php
Created December 17, 2015 17:30
adds a datepicker calendar to your specified Event Espresso text field question
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
// datepicker jQuery for Event Espresso 3
//
add_action('wp_enqueue_scripts', 'my_custom_espresso_scripts');
function my_custom_espresso_scripts() {
global $load_espresso_scripts;
@lorenzocaum
lorenzocaum / new_gist_file.md
Last active February 16, 2022 21:58
How to handle partial payments in Event Espresso 4

In this guide we'll talk about handling partial payments in Event Espresso 4. This works best if you have an initial payment + a balance due. Here are some examples:

$250 deposit + $750 final payment

$500 deposit + $500 final payment

This idea uses two events: one to collect the initial deposit and one to collect the final payment.

Step 1 - Create an event for the initial payment

@joshfeck
joshfeck / template-parts.md
Last active November 18, 2015 16:19
This moves the ticket selector from before the event content to after the event content. Requires Event Espresso 4.8.24.p or greater.
<?php
/**
* Add 'page-attributes' to Portfolio Post Type
*
* @param array $args, arguments passed to register_post_type
* @return array $args
*/
function be_portfolio_post_type_args( $args ) {
@vajrasar
vajrasar / add_jetpack_infinite.php
Last active July 13, 2017 19:57 — forked from anonymous/add_jetpack_infinite.php
Steps to add Infinite Scroll (Jetpack) to a Genesis Child Theme running on Genesis 2.0 + HTML 5. Code goes in functions.php
<?php
/*
To add Infinite Loop Module provided in Jetpack wordpress Plugin, in Genesis driven site.
*/
/*
Step 1. Install Jetpack Plugin
*/