Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

rest-api

Hiding WordPress REST API v2 endpoints from public viewing

August 2, 2022August 1, 2022 by Magenaut

I would like to start using the WordPress REST API v2 to query information from my site. I’ve noticed that when I visit an endpoint URL directly, I can see all of the data publicly. I’ve also seen that a lot of tutorials mention the use of test or local servers rather than live sites.

Categories Q&A, Wordpress Tags http, rest-api, wp-api Leave a comment

How to call a REST endpoint when a post is published?

August 2, 2022August 1, 2022 by Magenaut

I need to make WordPress call a specific REST endpoint when a new post is published, passing the most important post data via JSON.

Categories Q&A, Wordpress Tags hooks, publish, rest-api Leave a comment

Is it safe to fix Access-Control-Allow-Origin (CORS origin) errors with a php header directive?

August 2, 2022August 1, 2022 by Magenaut

I am trying to show a Formidable Pro Form from a WordPress site to the other.
I followed the developer’s API and the REST API, but faced a CORS problem.

Categories Q&A, Wordpress Tags api, headers, rest-api Leave a comment

Including WordPress in RESTful API

August 2, 2022August 1, 2022 by Magenaut

I’m using a great little open-source product called Restler to provide a RESTful API to a WordPress application. In order for this to work I want to be able to load the WordPress environment within a set of PHP classes that Restler will run when a request comes in.

Categories Q&A, Wordpress Tags ajax, rest-api Leave a comment

WP REST API “rest_no_route” when trying to update meta

August 1, 2022July 31, 2022 by Magenaut

I have been working with the WP REST API and all GET (read) commands pull the data I want from both built in and custom post types (this plugin was a godsend btw to help). I can also POST to create posts with top level information for both built-in and custom post types. All my authentication is working fine. But when I try to update post meta, I have been met by the following response:

Categories Q&A, Wordpress Tags post-meta, rest-api Leave a comment

How to remove rest api link: in http headers?

August 1, 2022July 31, 2022 by Magenaut

i would like to remove the “link:” line added to the http headers since wordpress 4.4

Categories Q&A, Wordpress Tags headers, http, http-api, rest-api Leave a comment

Can I authenticate with both WooCommerce consumer key and JWT?

August 1, 2022July 31, 2022 by Magenaut

I want to authenticate against both:

Categories Q&A, Wordpress Tags authentication, rest-api Leave a comment
Newer posts
← Previous Page1 … Page9 Page10
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress