Advertisement
verygoodplugins

Untitled

Apr 22nd, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. $cust_array = array(
  2.     'tags' => $new_tag
  3. );
  4.  
  5. $info = array('customer' => $cust_array );
  6.  
  7. $args = array(
  8.  
  9.     'headers' => array('Authorization' => 'Basic ' . base64_encode($credentials) ),
  10.     'method' => 'PUT',
  11.     'body' => json_encode( $info )
  12.  
  13. );
  14.  
  15. $response = wp_remote_get( '/admin/customers/#1234.json', $args );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement