Ok,
found the problem: I didn’t have to json_encode the body.
Related Posts:
- How to run multiple Async HTTP requests in WordPress?
- API JSON Data in WordPress
- How do I get URL from WP_HTTP object?
- How to send a HTTP Post request using PHP Curl and WordPress
- Send POST request to Flask app from functions.php file
- WordPress wp_remote_post() sending informaiton to Redmine REST API
- Using the wp_remote_post response body
- Why is this specific API request failing when sending via wp_remote_post?
- How can I run a second wp_remote_post() based on the response of the first?
- WP_Error Object in wp_remote_post & wp_remote_get
- How to add a .php file to WordPress
- When to use Exceptions vs Error Objects vs just plain false/null
- Query both first_name and last_name from wp_usermeta at the same time
- Woocommerce get selected shipping zone id for the current user
- PHP – redirect https to http and www to non-www
- Woocommerce -How to set product regular price default
- Action ‘save_post’ not working for quick edit
- Add to previous posts under post
- Limiting the WordPress feed to only a certain limit of characters
- Mail not sent when I set HTML headers
- Categories Template Assistance
- Is this code malidcous
- How to trash multiple post/product programmatically
- OrderItem get_total() returns lower value than $order_item->get_product()->get_price() * quantity
- Put CSS inside a PHP file and include it the right way
- Force SSL using FORCE_SSL_ADMIN
- Proper way to edit a post via phpMyAdmin without breaking the compare revisions tool
- Sending jsPDF documents to the server
- Sum custom field values of particular taxonomy
- Query all posts of a custom taxonomy term
- Add_action not working in required file of functions.php
- WordPress: get recent posts, delete the current category
- Displaying admin notices inside the block editor from rest_after_insert_{$this->post_type} hook
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- Slick + PHP + ACF + JQuery slide reveal not working
- inserting a post from an extern php file but post content doesn’t show on wp site
- Does wordpress templates always in files or in database?
- Concatenate output of php function into string
- how much php coding do i need to know in order to create web blog using wordpress.org
- Pull GetOption() variable into jQuery dynamically created html
- How would I use this filter to change the output of the date format to “Twitter time”?
- WP Business Directory Manager Plugin Admin Listings?
- wordpress admin plugin menu custom css
- Warning: printf(): Too few arguments in helpers.php file
- Any ideas why I am getting “I’m getting “wp-admin/admin-ajax.php 401 (Unauthorized)”
- Cant register rest routs from class instance
- Woocommerce Product_cat for current category page
- WordPress redirects to old login after migration
- How do I remove duplicate users from two merged WP_User_Query objects?
- calling function in external js file
- Get the featured image url of clicked post
- How to refresh a page from jquery [closed]
- How to get comment_ID by post_ID in wordpress
- CSS images don’t show up with bloginfo
- Pagination Not Working (pages duplicating content)
- Display additional user fields
- Help with accessing wp-admin page and resolving error messages
- How to show categories and date on posts
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- Woocommerce append shipping method form
- using shortcodes inside gravity forms
- WordPress template file if else issue
- Reliable way to add nonce to HTTP Header in WordPress?
- Trying to update Woocommerce meta values
- ssl redirect function is not working
- Hide specific shipping methode depending on day and time of day
- How to pass bloginfo(url) in a jquery
- How to empty price of simple and variable product when product changed into out off stock
- Load script and styles using an array of resources
- Create “blank” admin page without having admin-bar/admin-menu for faster load
- Export WordPress User Meta to CSV/Excel
- in_array() says array is a bool?
- Send Notification after post published was working but stopped after the last WP update
- Permalink like example.com/taxonomy/post_type/postname
- adding or removing endforeach; throws error!
- Meta inserted through wp_insert_post gets messed up
- If i use a child theme to add new code blocks to header.php, how does it get inserted in the right place in parent’s header.php?
- New term taxonomy and description in front page. Input’s
- Full search and replace isn’t enough to make all pictures to be loaded with https
- How can I display a query in a page?
- WordPress while loop with aphabetic counting like one, two, three
- Add php function into .js file (for tinyMCE button)
- Password form redirection to belonging post
- How to use custom fields to replace top-level parent title with an image using wp_list_pages?
- Query posts by custom fields (object post)
- Whats wrong with my code? Need To add String to shortcode? [closed]
- Sort author list alphabetically
- Custom HTML/CSS Theme into WordPress – SEO considerations
- what is %variable% in a wordpress plugin? [closed]
- Failed opening required in PHP
- How to Set Page Pagination Using Ajax JQuery – WordPress
- Can I associate a custom post type with another custom post type?
- ajax problems on loading page [closed]
- add_post_type_support but for front_page only
- Rename notifications to support [closed]
- Creating posts with php-script + csv
- Compare user meta values before update them
- wp-login – unable to redirect user to a custom login url
- Woocommerce Select Option Popup [closed]
- Add_filter just custom page types