What's in your logs?
Dec 21, 2020
9
Level 2
Query not execute php
nothing is sent to the database, what could I solve for it?
global $wpdb;
$order = new WC_Order( $order_id );
$items = $order->get_items();
$product_id = 193; // that's a specific product ID
$query = $wpdb->insert('wp_pms_member_subscriptions', array(
'id' => 4,
'user_id' => 12,
'subscribtion_plan_id' => 233,
'start_date' => null,
'expiration_date' => null,
'status' => 'active',
'paymanet_profile_id' => ' ',
'payment_gateway' => ' ',
'billing_amount' => ' ',
'billing_duration' => ' ',
'biling_duration_unit' => ' ',
'billing_cycles' => ' ',
'billing_next_payment' => null,
'billing_last_payment' => null,
'trial_end' => null
));
$wpdb->query($query);
Please or to participate in this conversation.