Skip to content

Instantly share code, notes, and snippets.

class EDD_Sendowl_Webhook_Handler extends EDD_Webhook_Handler {
function get_hook_id() {
return 'sendowl';
}
function get_hook_name() {
return 'SendOwl';
}
function get_webhook_params( $request ) {
<?php
/*
Plugin Name: EDD Webhooks
Description: Captures new sale notifications from 3rd party service and adds to Easy Digital Downloads
Version: 1.0
Author: Brian Hogg
Author URI: https://brianhogg.com
Text Domain: edd-webhooks
License: GPL2
*/
@brianhogg
brianhogg / gist:b87c216dde537ecaccdc5063858d0c3f
Last active October 30, 2018 21:16 — forked from davekiss/gist:e2b5beb37b3a1a93a3dddcf43ce51ce9
Display notice in EDD if email already exists and not logged in
<?php
/*
Plugin Name: EDD Prompt Login On Checkout
Plugin URI: http://brianhogg.com/
Description: Prompt login if email exists
Author: Dave Kiss
Version: 1.0.0
Author URI: http://brianhogg.com
License: GPL2
*/
<?php
// ...
$loading = apply_filters( 'title', $loading_title );
?>
<div class="page-loader">
<div class="loading"></div>
<p><?= $loading ?></p>
</div>
class EDD_Paddle_Webhook_Handler extends EDD_Webhook_Handler {
function get_hook_id() {
return 'paddle';
}
function get_hook_name() {
return 'Paddle';
}
function get_endpoint_args() {
@brianhogg
brianhogg / sample-plugin.php
Created March 17, 2016 02:30
Example of is_new
<?php
/*
Plugin Name: Sample Plugin
Plugin URI: https://brianhogg.com/
Description: Showing is_new
Version: 1.0
Author: Brian Hogg
Author URI: https://brianhogg.com
License: GPLv2 or later
*/
@brianhogg
brianhogg / ecn-group-by-day-prefix.php
Created August 5, 2016 14:15
Adds "Today -" or "Tomorrow -" to the group by day header for Event Calendar Newsletter
<?php
/*
Plugin Name: Event Calendar Newsletter Pro Today/Tomorrow Prefix
Plugin URI: https://eventcalendarnewsletter.com
Description: Add today/tomorrow prefix to "group by day" header
Version: 1.0
Author: Brian Hogg
Author URI: https://brianhogg.com
Text Domain: event-calendar-newsletter-pro
License: GPL2