Skip to content

Instantly share code, notes, and snippets.

✴️
Losing Information by Activating Jetpack.

Sebastian Moran sebastianmoran-mainwp

✴️
Losing Information by Activating Jetpack.
Block or report user

Report or block sebastianmoran-mainwp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sebastianmoran-mainwp
sebastianmoran-mainwp / copy data
Last active Aug 20, 2019
WP Mail Logging - Export Settings
View copy data
{"last_tab":"","delete-on-deactivation":"1","can-see-submission-data":"manage_options","datetimeformat-use-wordpress":"1","preferred-mail-format":"html","display-host":"0","log-rotation-limit-amout":"1","log-rotation-limit-amout-keep":"75","log-rotation-delete-time":"1","log-rotation-delete-time-days":"29","redux-backup":1}
@sebastianmoran-mainwp
sebastianmoran-mainwp / Custom DB table
Created Aug 16, 2019
WP Mail Logging database storage
@sebastianmoran-mainwp
sebastianmoran-mainwp / Commands
Last active Aug 15, 2019
Activate the WP-CLI WooCommerce to EDD Migration Script plugin
View Commands
wp plugin activate wp-cli-woo-to-edd-migration
wp help migrate_woo
wp migrate_woo migrate
wp migrate_woo migrate_products
wp migrate_woo migrate_taxonomies
wp migrate_woo migrate_coupons
wp migrate_woo migrate_orders
wp migrate_woo get_subscriber
wp migrate_woo get_subscriptions
wp migrate_woo is_renewal_payment
@sebastianmoran-mainwp
sebastianmoran-mainwp / Links
Created Aug 15, 2019
WooCommerce to EDD migration and dev cleanup
View Links
@sebastianmoran-mainwp
sebastianmoran-mainwp / migration.php
Created Aug 15, 2019 — forked from Nicholas-Cardot/migration.php
WooCommerce to EDD Migration Script
View migration.php
<?php
/*
Template Name: Migration Script
*/
error_reporting(E_ALL);
//reuire_once('/stripe/init.php');
\Stripe\Stripe::setApiKey("my_key");
View gist:c4dbefcbc855b864ae5845f493b188c9
/**
* Add a weekly email report that summarizes which domains that
* your products are being used on.
*/
add_filter( 'cron_schedules', function( $schedules ) {
$schedules['weekly'] = array(
'interval' => 604800,
'display' => __('Once Weekly')
);
@sebastianmoran-mainwp
sebastianmoran-mainwp / List
Created Aug 14, 2019
Easy Digital Downloads Recurring Payments cron event and action
View List
Cron event
edd_recurring_daily_scheduled_events
Action
edd_subscription_cancelled
@sebastianmoran-mainwp
sebastianmoran-mainwp / Custom DB table
Created Aug 13, 2019
Easy Digital Downloads Recurring Payments created custom database table
View Custom DB table
wp_edd_subscriptions
@sebastianmoran-mainwp
sebastianmoran-mainwp / Commands
Last active Aug 13, 2019
Bulk delete Easy Digital Downloads discounts and payments if working on a dev site using WP-CLI
View Commands
wp post list --field=ID --post_type=edd-payment --posts_per_page=2000 | xargs wp post delete --force
wp post list --field=ID --post_type=edd-discount --posts_per_page=2000 | xargs wp post delete --force
@sebastianmoran-mainwp
sebastianmoran-mainwp / advanced-cache.php
Created Aug 10, 2019
Hummingbird plugin created advanced-cache.php dropin file.
View advanced-cache.php
<?php
/**
* Hummingbird Advanced Tools module
*
* @package Hummingbird
*/
if ( ! defined( 'ABSPATH' ) ) {
die();
}
You can’t perform that action at this time.