Skip to content

Instantly share code, notes, and snippets.

View alkah3st's full-sized avatar

Daniel Quinn alkah3st

View GitHub Profile
@alkah3st
alkah3st / functions.php
Last active June 5, 2017 20:14
Send to Buffer on Publish/Scheduled Post
/**
* Buffer App Library
*/
session_start();
require_once(get_template_directory().'/includes/libraries/bufferapp/bufferapp.php');
/**
* Post to Buffer on Publish/Scheduled Publish
*/
function buffer_schedule($post_id) {
@alkah3st
alkah3st / google-structured-data-jsonld
Last active December 31, 2016 07:14
Google Structured Data: Add Review Snippets & Become an Instant Critic
/**
* Adds Google Schema Data (Posts)
*/
function enqueue_review_jsonld() {
if (is_singular('post')) :
global $post;
$post_thumbnail = get_the_post_thumbnail_url( $post); // the featured thumbnail of our review
@alkah3st
alkah3st / gulp-error-reporting
Last active December 31, 2016 05:44
Gulp Error Reporting with Jshint, Gulp-Notify, and Livereload
/**
* init gulp plugins
*/
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var map = require('map-stream');
var events = require('events');
var emitter = new events.EventEmitter();
var path = require('path');
var gutil = require('gulp-util');