Skip to content

Instantly share code, notes, and snippets.

View breadadams's full-sized avatar
🏗️
Building something!

Brad Adams breadadams

🏗️
Building something!
View GitHub Profile
@breadadams
breadadams / sc-path-test
Last active July 1, 2018 20:54
Styled-component path json
NodePath {
parent:
Node {
type: 'VariableDeclaration',
start: 875,
end: 912,
loc: SourceLocation { start: [Object], end: [Object] },
declarations: [ [Object] ],
kind: 'const' },
hub:
@breadadams
breadadams / wc-klarna-disable-autofocus.php
Created October 20, 2017 08:22 — forked from NiklasHogefjord/wc-klarna-disable-autofocus.php
Klarna for WooCommerce - Filter Create order object sent to Klarna for disabling autofocus of email field
/**
* WooCommerce - Klarna payment gateway
* Filter Create order for disabling autofocus of email field.
**/
// New order ($create)
add_action('kco_create_order', 'my_kco_create_order');
function my_kco_create_order( $create ) {
$create['gui']['options'] = array('disable_autofocus');