Skip to content

Instantly share code, notes, and snippets.

View sagarsdeshmukh's full-sized avatar
🎯
Focusing

Sagar Deshmukh sagarsdeshmukh

🎯
Focusing
View GitHub Profile
@sagarsdeshmukh
sagarsdeshmukh / wp-query-ref.php
Created February 28, 2022 08:41 — forked from luetkemj/wp-query-ref.php
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
*/
@sagarsdeshmukh
sagarsdeshmukh / webhook-mailer.php
Created April 25, 2017 13:17 — forked from boucher/webhook-mailer.php
Stripe Webhook PHP Example
<?php
// SETUP:
// 1. Customize all the settings (stripe api key, email settings, email text)
// 2. Put this code somewhere where it's accessible by a URL on your server.
// 3. Add the URL of that location to the settings at https://manage.stripe.com/#account/webhooks
// 4. Have fun!
// set your secret key: remember to change this to your live secret key in production
// see your keys here https://manage.stripe.com/account