View auto_expire_posts.php
define( 'EV_POST_TYPE', 'event' );
define( 'EV_DATE_FIELD', 'event_start_date' );
define( 'EV_TIMESTAMP', 'event_timestamp' );
// save start date as unix timestamp
function custom_timestamp ( $post_id ) {
$ev_post_type = 'event';
$ev_date_field = 'event_start_date';
$ev_timestamp = 'event_timestamp';
View auto_set_featured_image.php
View swap.js
(function ($, window, document, undefined) {
"use strict";
$(function() {
var swapContent = debounce(function() {
var currentSize = $(window).width();
var swapPath = '/wp-content/themes/twentyseventeen/template-parts/';
View reorder-options.js
$( '#select > option[value="value"]' ).insertAfter( $('#select > option').eq(0) );