Skip to content

Instantly share code, notes, and snippets.

@brianhogg
brianhogg / gist:b87c216dde537ecaccdc5063858d0c3f
Last active Oct 30, 2018 — forked from davekiss/gist:e2b5beb37b3a1a93a3dddcf43ce51ce9
Display notice in EDD if email already exists and not logged in
View gist:b87c216dde537ecaccdc5063858d0c3f
<?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
*/
View example.php
<?php
// ...
$loading = apply_filters( 'title', $loading_title );
?>
<div class="page-loader">
<div class="loading"></div>
<p><?= $loading ?></p>
</div>
View edd-paddle-webhook-handler.php
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() {
View edd-sendowl-webhook-handler.php
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 ) {
View edd-webhook-handler.php
<?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 / ecn-group-by-day-prefix.php
Created Aug 5, 2016
Adds "Today -" or "Tomorrow -" to the group by day header for Event Calendar Newsletter
View ecn-group-by-day-prefix.php
<?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
View sample-plugin.php
<?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
*/