This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NodePath { | |
parent: | |
Node { | |
type: 'VariableDeclaration', | |
start: 875, | |
end: 912, | |
loc: SourceLocation { start: [Object], end: [Object] }, | |
declarations: [ [Object] ], | |
kind: 'const' }, | |
hub: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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'); |