Skip to content

Instantly share code, notes, and snippets.

View cliffordp's full-sized avatar

Clifford cliffordp

View GitHub Profile
@elimn
elimn / tribe_additional_feed_views.php
Last active March 23, 2017 14:54
MT | TEC | Add more display options to the ical feeds
<?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 February 28, 2017 19:47 — forked from elimn/Tribe__Snippet__Change_All_Link.php
MT | TEC | Change the recurrent events see all page to a different URL
<?php
/**
* Moved to https://github.com/danieliser/WP-Product-In-Dash-Review-Requests
*/
@JeffMatson
JeffMatson / gfaddon-minimum-requirements.php
Last active December 20, 2020 21:35
Gravity Forms GFAddOn->minimum_requirements() usage.
array(
// Require WordPress version 4.6.2 or higher.
'wordpress' => array(
'version' => '4.6.2'
),
// Require PHP version 5.3 or higher.
'php' => array(
'version' => '5.3',
@rcstr
rcstr / gist:cba95996308c837bebe75c01293d08e0
Last active January 28, 2019 05:14 — forked from GaryJones/gist:8430080
References for Why Not to Use Singleton Design Pattern
@tzmartin
tzmartin / embedded-file-viewer.md
Last active May 1, 2024 14:41
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@elimn
elimn / Tribe__Extension__Community_Events_Edit_Status.php
Created October 4, 2016 13:33
MT | CE | Set status of Community Events to the default status after they have been edited
<?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 September 13, 2016 03:22
gravityforms-bootstrap4
.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;
@tripflex
tripflex / functions.php
Last active February 13, 2024 19:03
WordPress Remove Filter (remove_filter converted to remove_class_filter) to remove Filter/Action without Class Object access. Works with WordPress 1.2+ (4.7+ support added 9-19-2016)
<?php
/**
* Make sure the function does not exist before defining it
*/
if( ! function_exists( 'remove_class_filter' ) ){
/**
* Remove Class Filter Without Access to Class Object
*
* In order to use the core WordPress remove_filter() on a filter added with the callback