Skip to main content

Questions tagged [endpoints]

Custom additions to permalinks for any kind of type (archives, posts, root).

1 vote
1 answer
239 views

I'm experimenting with a custom query block for the fun of it. I would like to leverage the components that come with core query inner blocks (title, excerpt, featured image, etc..). For this test, I'...
Austin Allen's user avatar
0 votes
2 answers
146 views

Set a target endpoint for the browser to send the report: function add_csp_header() { header("Content-Security-Policy-Report-Only: report-uri ".get_bloginfo('url')."/csp-endpoint; ...
gurky's user avatar
  • 55
0 votes
1 answer
80 views

I have created an endpoint with the following php code. The code is currently allowing me to receive the correct pdf but none of the information from the $page is populated in the pdf. The $page is a ...
holty07's user avatar
0 votes
0 answers
159 views

I am working on a custom CRM which includes keeping an eye on my clients WordPress sites so I have created some custom REST API endpoints to collect different types of data like the installed plugins &...
Eoin H's user avatar
  • 131
0 votes
0 answers
299 views

Follow the doc, I tried to set up X-WP-NONCE before ajax sent data to custom route, but it show wpApiSettings.nonce not defined. If don't set beforeSend, on the back end still can pass the nonce ...
Basco's user avatar
  • 1
0 votes
1 answer
78 views

How do I add multiple custom menu Woo-commerce my account page? this code works but how do i show content for each my custom menus? function pa_custom_endpoint() { foreach(pa_custom_endpoint_keys()...
Behzad's user avatar
  • 1
0 votes
1 answer
118 views

I have created a custom endpoint for Download page with Permalink setting: /%category%/%postname%/ The URL as below: domain.com/top-category/child-category/post-slug/download function themes_download(...
Vietrick's user avatar
0 votes
1 answer
685 views

I would like to delete a row from a table in the database using a custom endpoint via the API. Using an example in the WordPress REST API Handbook, I put together the following code and placed it in ...
John Keidel's user avatar
1 vote
1 answer
775 views

So I'm going to explain this the best way possible, and see if someone might be able to help me out. Website 1 (Posts located here): Let's say that our WordPress REST API endpoint is: https://example-...
Tripp's user avatar
  • 23
0 votes
1 answer
1k views

I have one endpoint to create players, which is a PUT request to a certain route. While I was sending parameters via JSON, it was working fine, but now I need to upload a picture with data, so I ...
Bruno Polo's user avatar
1 vote
1 answer
268 views

So WordPress offers the default Rest API endpoint, which is: https://example.com/wp-json/wp/v2/posts which pulls in all the posts. Is there a way to configure and modify the existing /wp/v2/posts ...
Sema's user avatar
  • 11
1 vote
0 answers
274 views

EDIT: I think I discovered the issue, the endpoint is truncating the content response, does anyone know how to send over all of the data without it being truncated? So I stumbled across some ...
Test2's user avatar
  • 21
1 vote
0 answers
426 views

I'm googling like an hour for a possible solution while im trying to create my first custom wordpress rest api endpoint. If i call the endpoint by postman it just works, but if i try with jquery, it ...
mademyday's user avatar
0 votes
0 answers
847 views

So I wanted to see if someone might be able to help me with this, so below I will explain what I've done: I am using wp_remote_get to grab the posts from another website with the arguments page and ...
Test2's user avatar
  • 21
0 votes
1 answer
440 views

I am trying to create a custom endpoint by custom taxonomies, I have already created another for the categories and it works well, however there is something I cannot solve with this function ...
Jorge Amaya's user avatar

15 30 50 per page
1
2 3 4 5
9