Add guest customer id (WIP)

This commit is contained in:
dinamiko 2021-12-24 12:37:06 +01:00
parent ece3ef95d3
commit d69f1b5a9c
5 changed files with 18 additions and 96 deletions

View file

@ -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',