Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'meta_data' =>
- array (size=1)
- 0 =>
- array (size=3)
- 'id' => int 3293
- 'key' => string 'kambusa' (length=7)
- 'value' => string '123' (length=3)
- $data = [
- 'regular_price' => '21.00',
- 'meta_data' => [
- ['kambusa' => '456']
- ]
- ];
- print_r($woocommerce->put('products/530', $data));
- $args = array(
- 'id' => $this->textfield_id,
- 'label' => sanitize_text_field( 'Kambusa ID' ),
- 'placeholder' => $placeholder,
- 'desc_tip' => true,
- 'description' => $description,
- );
- woocommerce_wp_text_input( $args );
- $data = [
- 'regular_price' => '21.00',
- 'meta_data' => [
- ['key' => 'kambusa'],
- ['value' => '456']
- ]
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement