Skip to content

Instantly share code, notes, and snippets.

@neovea
neovea / wc_adaptive_payment_custom_args.php
Last active September 1, 2016 17:55 — forked from claudiosanches/functions.php
Combined to WooCommerce Adaptive Payment by WooTheme, offers the possibility to create dynamic amounts for specific paypal accounts. Put this snippet into functions.php
<?php
/**
* Custom PayPal Adaptive Payments args.
*
* @param array $args
* @param WC_Order $order
* @return array
*/
function wc_adaptive_payment_custom_args( $args, $order ) {
$args['receiverList'] = array(
@neovea
neovea / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console