Fix skip conditional

This commit is contained in:
Emili Castells Guasch 2023-06-23 11:39:25 +02:00
parent 73be9a11d9
commit ba10ef98f3

View file

@ -238,7 +238,7 @@ class VaultingModule implements ModuleInterface {
foreach ( $customers as $id ) {
$metadata_exist = metadata_exists( 'user', $id, 'ppcp-vault-token' );
$skip_empty_key_migration = apply_filters( 'ppcp_skip_payment_tokens_empty_key_migration', true );
if ( ! $metadata_exist && ! $skip_empty_key_migration ) {
if ( ! $metadata_exist && $skip_empty_key_migration ) {
return;
}