markbautista
Forum Replies Created
-
Forum: Plugins
In reply to: [JSON API User] Invalid access, unverifiable ‘nonce’ value.Hi Sir Ali,
I think im sending it wrong, actually this is my 1st attempt using WP-REST and using Postman as a Client. If that so, Can you help me how the proper way sending the request?
Because right now I’m setting it like this at postman?
1. Method – POST
2. The Url is Set to –https://xxxxxxxx.com/api/user/register/
3. There’s no Auth
4. Headers are Empty
5. Body (form-data) parameter is –(insecure, username, email, display_name, last_name, first_name, user_pass, meta_key, meta_value and nonce)
Am I in the wrongway?
Best Regards Sir Ali
Forum: Plugins
In reply to: [JSON API User] Invalid access, unverifiable ‘nonce’ value.I don’t know where the error exist. When all the parameters are given to a POST Request.
Forum: Plugins
In reply to: [JSON API User] Invalid access, unverifiable ‘nonce’ value.Hi Sir Ali,
I also try Advanced REST Client but it’s giving me error.
{ "status": "error", "error": "You must include 'username' var in your request. " }
Thank you very much for fast response.
Forum: Plugins
In reply to: [WPSOAP] WPSOAP Affecting Woo Commerce Product DataI got it working, the Bootstrap.css is conflicting the default wordpress bootstrap.css
Forum: Plugins
In reply to: [JSON API User] Create User with Existing User MetaFinally got this working,
The plugin JSON API 0.1 has this line:
if($user_id) $msg = ‘Success’
While the JSON API 2.5 has this line:
if($user_id) wp_new_user_notification( $user_id, '',$notify );
Sir. Ali is right, you just replace this
if($user_id) wp_new_user_notification( $user_id, '',$notify );
toif($user_id) { $msg = 'Success'; $meta_key = $_REQUEST['meta_key']; $meta_value = $_REQUEST['meta_value']; update_user_meta($user_id, $meta_key, $meta_value); }
Thank you very much Ali.
Forum: Plugins
In reply to: [JSON API User] Create User with Existing User MetaHi Ali, Thank you for the response however i can’t find where to put this code? I mean, It says that look for this
if($user_id) $msg = ‘Success’;
But seems i can’t find this on user.php?Thank you very much Ali.