bullantt
Forum Replies Created
-
Forum: Plugins
In reply to: [JWT Authentication for WP REST API] Cannot modify header informationI was having the same issue after installing this today and found this this warning is because Functions that send/modify HTTP headers must be invoked before any output is made.
What i have done for now to work around this was to edit the plugin code.
In the word press plugins folder go to
jwt-authentication-for-wp-rest-api/includes/class-jwt-auth.phpIf you then find the line function
define_public_hooks()Change this line
$this->loader->add_filter('rest_api_init', $plugin_public, 'add_cors_support');
To
$this->loader->add_filter('init', $plugin_public, 'add_cors_support');This will fix this issue for now
Hi So you know i have found the solution to POST/PUT request to the REST API at this in meta_data Key = _wpm_gtin_code value = YOUR_VALUE this will be returned in get requests in the ean_code field.
"meta_data": [ { "key":"_wpm_gtin_code", "value": "123798123987132" } ]Kind Regards,
Anthony
- This reply was modified 5 years, 11 months ago by bullantt.
Hi,
I am also having this same issue i would like to set the ean_code using the REST API did you find a solution?
Kind Regards,
Anthony