Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. 'meta_data' =>
  2. array (size=1)
  3. 0 =>
  4. array (size=3)
  5. 'id' => int 3293
  6. 'key' => string 'kambusa' (length=7)
  7. 'value' => string '123' (length=3)
  8.  
  9. $data = [
  10. 'regular_price' => '21.00',
  11. 'meta_data' => [
  12. ['kambusa' => '456']
  13. ]
  14. ];
  15.  
  16. print_r($woocommerce->put('products/530', $data));
  17.  
  18. $args = array(
  19. 'id' => $this->textfield_id,
  20. 'label' => sanitize_text_field( 'Kambusa ID' ),
  21. 'placeholder' => $placeholder,
  22. 'desc_tip' => true,
  23. 'description' => $description,
  24. );
  25. woocommerce_wp_text_input( $args );
  26.  
  27. $data = [
  28. 'regular_price' => '21.00',
  29. 'meta_data' => [
  30. ['key' => 'kambusa'],
  31. ['value' => '456']
  32. ]
  33. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement