Identical wp_rest nonce returned from rest_api
Immediately update the $_COOKIE array once you’ve called wp_signon() (which calls wp_set_auth_cookie()). And you can do that using the set_logged_in_cookie hook.
Immediately update the $_COOKIE array once you’ve called wp_signon() (which calls wp_set_auth_cookie()). And you can do that using the set_logged_in_cookie hook.
I’m writing some code that updates options using update_option using the REST API and apiFetch.
I have attempted to register the route, tried all sorts of different parameters, feel my code looks like many of the examples on this site, but can’t figure out why it doesn’t work.
I need to create an endpoint that when called returns an XML with the products of the store. I have the XML generated, but I don’t know how to make the endpoint return it in XML format, because now it returns it in JSON format, and being an XML, it does not return it well.
German umlauts in dynamic block properties ( strings ) are incorrectly encoded/saved in the database, when it’s an editor, but correct if edited by an admin.
I’m an Administrator role user. When I’m using the REST API, if I attempt to call
Trying to use the WordPress API to create a blog post with tags/categories, etc. but running into some errors. I am running the PHP code below outside of my WordPress instance and get the following:
I am trying to add the post (pages, posts) excerpt in the wp-json/wp/v2/search get endpoint but this endpoint seems to not take into account the register_rest_field method.
I’m trying to use a REST filter to require a certain parameter is set.
I have a custom post type, that can be editable by more than one user.
Each post of that type has a field with the user ids who can edit it (kinda like co-authors).
But since many users have permissions to the post, I am not sure how to prevent deletion by other users (not in the co-authors’ list).