Skip to content

Instantly share code, notes, and snippets.

View edwardkay's full-sized avatar

Edward Kay edwardkay

View GitHub Profile

Sheep API introduction

Notes:

  • replace {flock} with the client identifier
  • 200 = OK
  • 201 = create
  • 4xx = Client screwed up
  • 404 = not found (also returned on bad user credentials)
  • 409 = conflict (auth and structure ok but a problem with the data values)
  • 5xx = Sheep screwed up
@micc83
micc83 / skip-to-check-out.php
Last active October 28, 2024 06:18
Skip cart and redirect to direct checkout on WooCommerce
<?php
/**
* Skip cart and redirect to direct checkout
*
* @package WooCommerce
* @version 1.0.0
* @author Alessandro Benoit
*/
// Skip the cart and redirect to check out url when clicking on Add to cart
@luetkemj
luetkemj / wp-query-ref.php
Last active April 6, 2025 09:15
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/