mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Replace update_metadata() with set_sold_individually()
This commit is contained in:
parent
cc2e121e2a
commit
07d041fe1f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue