Skip to content

Instantly share code, notes, and snippets.

View sethshoultes's full-sized avatar

Seth Shoultes sethshoultes

View GitHub Profile
@sethshoultes
sethshoultes / ee_display_download_tickets.php
Created February 12, 2016 17:53 — forked from Pebblo/ee_display_download_tickets.php
Add a 'Download your tickets' button to the EE4 thank you page. The hook in use adds the button above the overview, just under the confirmation order section. You will likely need to apply your own styles, possibly a container div and apply styles to that depending on how you want this to be displayed.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
function ee_display_download_tickets( $transaction ) {
if ( $transaction instanceof EE_Transaction ) {
$primary_reg = $transaction->primary_registration();
if ( $primary_reg->is_approved() ) {
@sethshoultes
sethshoultes / HelpScout Docs Customization
Last active August 29, 2015 14:14 — forked from seedprod/gist:7de2027ad32e1a5ee8d9
Adds new buttons to HelpScout Docs
<!-- Replace default Contact Us url in HelpScout Docs with custom url and add a My Account link to the top menu -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(function() {
$("#contact a,#sbContact,#sbContactMobile, #contactMobile a").attr("href", "https://app.sellwp.co/seedprod/ticket").text('Open a Ticket');
$( "#mainNav .nav" ).append( "<li><a href='http://www.seedprod.com/members'>My Account</a></li>" );
});
</script>
<!-- SeedProd.com custom styles -->
@sethshoultes
sethshoultes / template-parts.md
Last active November 18, 2015 17:52 — forked from Pebblo/functions.md
This moves the ticket selector from before the event content to after the event content. Requires Event Espresso 4.8.24.p or greater.
@sethshoultes
sethshoultes / 0_reuse_code.js
Created April 2, 2014 22:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
function mycustom_filter_gettext( $translated, $original, $domain ) {
// This is an array of original strings
// and what they should be replaced with
$strings = array(
'Register' => 'Sign up',
'Confirm and go to payment page' => 'Complete registration',
// Add some more strings here
);