Replace update_metadata() with set_sold_individually()

This commit is contained in:
George Burduli 2024-05-29 13:42:14 +04:00
parent cc2e121e2a
commit 07d041fe1f
No known key found for this signature in database
GPG key ID: 572A97DFDA3D2E5C

View file

@ -695,7 +695,7 @@ class PayPalSubscriptionsModule implements ModuleInterface {
$subscriptions_api_handler->update_plan( $product );
if ( $product->get_meta( '_ppcp_enable_subscription_product', true ) === 'yes' ) {
update_metadata( 'post', $product->get_id(), '_sold_individually', 'yes', 'no' );
$product->set_sold_individually( true );
}
return;