Skip to content

Instantly share code, notes, and snippets.

View poncianodiego's full-sized avatar

Diego Ponciano poncianodiego

View GitHub Profile
@jeffochoa
jeffochoa / Errors.js
Last active February 9, 2022 09:52
Vue Form and Error validator (Laracasts)
class Errors {
/**
* Create a new Errors instance.
*/
constructor() {
this.errors = {};
}
/**
@anthonysbrown
anthonysbrown / woocommerce-pending-subscriptions-retry.php
Last active August 27, 2019 23:38
Retry Woocommerce Pending and subscriptions if your gateway has an error or fails. Go to your site ?retry=1
<?php
/**
* Plugin Name: WooCommerce Subscriptions Pending payment fix
*/
$wc_pending_payment_fix = new wc_pending_payment_fix;
add_action('init', array($wc_pending_payment_fix, 'retry_payments'));
class wc_pending_payment_fix{
@goranefbl
goranefbl / woo-email.php
Created January 16, 2016 09:37
Use woocommerce email template header/footer with your plugin
public function gens_send_email($user_id,$coupon_code) {
if ( !$user_id || !$coupon_code) {
return false;
}
global $woocommerce;
$mailer = $woocommerce->mailer();
$user_info = get_userdata($user_id);