Title: cannot send user_meta
Last modified: June 22, 2021

---

# cannot send user_meta

 *  Resolved [theblindhawk](https://wordpress.org/support/users/theblindhawk/)
 * (@theblindhawk)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/cannot-send-user_meta/)
 * Hello,
 * I am trying to send the usermeta values from a site to another, the user in created,
   and everything is fine, but the usermeta value is not getting stored.
 *     ```
       $s=array(
       		"billing_phone"=> "00000000000",
       		"billing_address_1"=> "adress",
       		"billing_postcode"=> "0000000"
       		);
       	$data=array(
       		"username"=> "username-tests",
       		"user_login"=> "username-tests",
       		"first_name"=> "username",
       		"last_name"=> "tests",
       		"email"=> "mymail@gmail.com",
       		"password"=> '000000',
       		'AUTH_KEY' => 'the-key',
       		'user_meta'=> $s,
       	);
       ```
   
 * this is a sample code that I am using. I also tried using `json_encode($s)` but
   it is not working.
    I am new to JSON and REST API, so I am pretty sure I am getting
   something basic wrong.
 * Please let me know how the metadata should be sent, possibly with a sample code
   in php.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [theblindhawk](https://wordpress.org/support/users/theblindhawk/)
 * (@theblindhawk)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/cannot-send-user_meta/#post-14594855)
 * I decided to create my own REST API code in the end.
    I think this is an awesome
   plugin, but I personally think it would appreciate more code examples in the 
   documentation.
 *  Plugin Author [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * (@nicu_m)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/cannot-send-user_meta/#post-14599825)
 * Hello [@theblindhawk](https://wordpress.org/support/users/theblindhawk/),
 * This sounds cool.
    I’m currently working on version 3.0.0. If you want to check
   it, you can download it from GitHub and follow the instructions: [https://github.com/nicumicle/simple-jwt-login](https://github.com/nicumicle/simple-jwt-login)
 * Best regards,
    Nicu.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘cannot send user_meta’ is closed to new replies.

 * ![](https://ps.w.org/simple-jwt-login/assets/icon-256x256.png?rev=2106097)
 * [Simple JWT Login – Allows you to use JWT on REST endpoints.](https://wordpress.org/plugins/simple-jwt-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-jwt-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-jwt-login/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-jwt-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-jwt-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-jwt-login/reviews/)

## Tags

 * [user_meta](https://wordpress.org/support/topic-tag/user_meta/)

 * 2 replies
 * 2 participants
 * Last reply from: [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/cannot-send-user_meta/#post-14599825)
 * Status: resolved