Get html from custom route api
Get html from custom route api
Get html from custom route api
Found: I forgot to enable the Custom Fields for the custom post type even if the meta boxes were programmatically created.
WordPress Rest Api rest_cannot_edit
You can’t really apply authentication based directly on whether the request is GET or otherwise, but can forcefully apply authentication requirements globally in that manner, if you like. I’ve been quite verbose with the code to illustrate what’s happening: add_filter( ‘rest_authentication_errors’, function ( $error ) { /** * If it’s a WP_Error, leave it as … Read more
WordPress 5.6 Application Passwords
Found solution : /wp-json/wp/v2/product_category/?parent=0
What I haven’t thought of is that I could use wp_nonce instead of jwt – create nonce on backend, store it on frontend and send it with every request till it expires. What drawbacks does wp nonce method have vs jwt method? Using nonces as a replacement for an authentication protocol, or as a session … Read more
Found it : Replace acf by fields { “title”:”Sample ACF field demo”, “status”: “publish”, “fields”: { “title_fields” : “Custom title”, “rent_field” : 100, } }
Escape commas in REST API
Rest API and how to deal with it in server side