mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Add guest customer id (WIP)
This commit is contained in:
parent
ece3ef95d3
commit
d69f1b5a9c
5 changed files with 18 additions and 96 deletions
|
@ -98,6 +98,10 @@ class VaultingModule implements ModuleInterface {
|
|||
}
|
||||
);
|
||||
|
||||
add_action('woocommerce_created_customer', function($customer_id) {
|
||||
update_user_meta($customer_id, 'ppcp_guest_customer_id', WC()->session->get('ppcp_guest_customer_id'));
|
||||
});
|
||||
|
||||
$asset_loader = $container->get( 'vaulting.assets.myaccount-payments' );
|
||||
add_action(
|
||||
'wp_enqueue_scripts',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue