Skip to content

Instantly share code, notes, and snippets.

Clifford cliffordp

  • Oklahoma
Block or report user

Report or block cliffordp

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
@andrasguseo
andrasguseo / modify-imported-event-timezones.php
Last active Nov 1, 2019
Modify timezone and time when importing with EA (The Events Calendar)
View modify-imported-event-timezones.php
<?php
/*
* Description: Modifies the timezone and the time of imported events, if the source
* feed timezone is UTC
*
* Usage: Copy the snippet into your theme's (preferably child theme's) functions.php file.
* Modify the URL and the timezone at the end of the code based on your needs
* Timzone name list: the TZ* column on this page
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
*
@spivurno
spivurno / gw-gravity-forms-populate-form.php
Last active May 8, 2019
Gravity Wiz // Gravity Forms // Populate Form with Entry (Optionally Update Entry on Submission)
View gw-gravity-forms-populate-form.php
<?php
/**
* Gravity Wiz // Gravity Forms // Populate Form with Entry (Optionally Update Entry on Submission)
*
* Pass an entry ID and populate the form automatically. No form configuration required. Optionally update the entry on
* submission.
*
* @version 1.5
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
@harisrozak
harisrozak / wc_booking_unavailable_rentals_by_date.php
Last active Oct 30, 2018
WooCommerce Booking, get the unavailable rentals by date
View wc_booking_unavailable_rentals_by_date.php
<?php
$dateTimeStart = new DateTime($timestamp_start);
$dateTimeEnd = new DateTime($timestamp_end);
$unavailable_ids = wc_booking_unavailable_rentals_by_date($dateTimeStart, $dateTimeEnd);
// get all unavailable rentals by date
function wc_booking_unavailable_rentals_by_date($dateStart, $dateEnd) {
$filtered_rentals = array();
$unavailable_ids = array();
@elimn
elimn / tribe_additional_feed_views.php
Last active Mar 23, 2017
MT | TEC | Add more display options to the ical feeds
View tribe_additional_feed_views.php
<?php
/**
* Adds more display options to the ical feeds
*
* This will show recently published events, up to 40 of them:
* events-slug/?ical=1&tribe_display=recently-published&tribe_posts_amount=40
*
* This will show all events in the year 2012
* events-slug/?ical=1&tribe_display=year&eventDate=2012
@cliffordp
cliffordp / Tribe__Snippet__Change_All_Link.php
Last active Feb 28, 2017 — forked from elimn/Tribe__Snippet__Change_All_Link.php
MT | TEC | Change the recurrent events see all page to a different URL
View Tribe__Snippet__Change_All_Link.php
@rcstr
rcstr / gist:cba95996308c837bebe75c01293d08e0
Last active Jan 28, 2019 — forked from GaryJones/gist:8430080
References for Why Not to Use Singleton Design Pattern
View gist:cba95996308c837bebe75c01293d08e0
@elimn
elimn / Tribe__Extension__Community_Events_Edit_Status.php
Created Oct 4, 2016
MT | CE | Set status of Community Events to the default status after they have been edited
View Tribe__Extension__Community_Events_Edit_Status.php
<?php
/**
* Sets the status of Community Events to the default status after they have been edited
*
* When you set Community submitted events to a status like "Pending Review" and a
* user submits a new event, it will be marked Pending Review and will not be visible
* until an admin publishes it. However if a user edits this event after it has been
* published, it will stay published. With this code it will instead go to Pending Review
* and will again be removed from public view until an admin republishes the event.
@JasonHoffmann
JasonHoffmann / gforms_styles.css
Created Sep 13, 2016
gravityforms-bootstrap4
View gforms_styles.css
.btn > .caret, .gform_button > .caret,
.dropup > .btn > .caret,
.dropup > .gform_button > .caret {
border-top-color: #000 !important;
}
.gform_fields {
padding-left: 0;
list-style: none;
margin-left: -15px;
View paprika-api.md

Paprika doesn't have their API documented, so this is me reverse-engineering it from an Android device

Live Demo

https://knowing-grain.glitch.me/

Sync

HTTP BASIC auth (emoji shrug), and send a GET to:

You can’t perform that action at this time.