Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

An application programming interface (API) specifies how some software components should interact with each other. In addition to accessing databases or computer hardware, such as hard disk drives or video cards, an API can be used to ease the work of programming graphical user interface components. ...

0
votes
0answers
10 views

It's possible to get new features and bugs fixed from the WordPress API?

What I want to do is get the new features and the information related from a specific version of Word Press. I want to get this information from an external php platform. I check the Word Press API ...
0
votes
0answers
10 views

WordPress multisite rest API

I have a question. I created a WordPress Multisite. And the Rest API for my site and subdomain does not work with this site https://cjdropshipping.com/.(I gave them the api key and authorized my store ...
0
votes
1answer
17 views

Sending POST Request from server

I have to make a Post request to below and get the response . How can I do this in WordPress. I have [CLIENT_ID] and [CLIENT_SECRET] - i can just change it. [REFRESH_TOKEN] is $_GET('code'); POST ...
0
votes
2answers
46 views

How do I filter Child Posts by Parent Post ID for Custom Post types in Wordpress REST API response?

I have two Custom post types: question and answer. "Questions" are hierarchical and they are parent posts for answers - which are child posts. For every answer, there's a parent question. When someone ...
-1
votes
0answers
9 views

Post video preview in WP REST API

How to extend the API to obtain a preview image of a video manually uploaded to a post? I saw a lot of plugins that do this for YouTube or other media sites, but no one for manually uploaded videos.
0
votes
0answers
10 views

Detecting if a Youtube video has been watched and change something on a page in reaction to it

Every of my Youtube videos has a dedicated Wordpress page. I want to detect if a video has been watched (say for example for 80%) and in reaction to it, I want to change something on it's page (I want ...
0
votes
1answer
22 views

Creating posts, containing data from remote API

I need some help and guidance. So I'm developing a website(custom theme) where the goal is to get data from a remote API. I want to be able to store the data in individual posts (one custom post type)...
0
votes
0answers
18 views

WP REST API - Add post with taxonomy using term_name

Hi there we have API requests hitting our WP site to import posts into a custom post type. In the JSON for the post type the taxonomy "job_sector" is sent through as a string using the terms name ...
2
votes
3answers
112 views

Defer Code in Widgets - Page Speed

How to UP Page Speed With Widget Defer? Is there a way to defer a widget in the footer? I have an external API in a footer widget which is slowing down my page. It is not needed until the page is ...
0
votes
1answer
17 views

Passing data outside of Wordpress possible?

We're exploring some possibilities to upgrade our web development tools in using Wordpress, but we're concerned whether or not there is a good plug-in to build custom forms in WordPress and pass data ...
1
vote
1answer
26 views

How do I start using an external API and PHP for a WordPress.org page?

I have created some reports for some web pages that use JavaScript HTTP Requests to retrieve some data from an API. I would like to use the reports on some WordPress pages. I have done a lot of ...
0
votes
1answer
14 views

Import product in my woocommerce site from another site via API

I want to import products from simpletire.com via the API they have given me. The API looks like this: Web Service Path : https://api.simpletire.com/wholesale/ENVIRONMENT/OPERATION/APIKEY Parameters ...
0
votes
0answers
21 views

wordpress wp_remote_post Get the Response from another wordpress site

Everyone, I am New for Wordpress Development I develop one plugin there is two Wordpress site. site 1 sends the request to site 2. And site 2 will send some response for site 1 requests site 1 index....
0
votes
0answers
31 views

External API product import to WooCommerce

OK, this has been driving me nuts for days now. I have even resorted to trying to use dsync and ARC but cannot get an external product API to connect to WooCommerce to import products for a client ...
0
votes
0answers
13 views

Is there a way to stop WordPress from automatically inserting <br> tags when using the API to post content?

I am using the API to automatically post blog content. In software, I create the HTML I want and then use the API to create the post but the result contains a bunch of line breaks and paragraphs so ...
0
votes
0answers
42 views

Envato Purchase Code Verifier

I'm using Envato API to verify Purchase Code I used plugin sample code from GitHub https://github.com/codehaiku/Envato-Purchase-Code-Verifier here I added token and AUTHOR_SALES_ENDPOINT_URI = 'https:/...
0
votes
1answer
55 views

400 Bad Request - JavaScript App calling Custom wp-json endpoint

I have successfully created a new endpoint/route and can view it via wp-json. Not only that, I can successfully make a post request to this endpoint externally from the browser using the Restlet ...
0
votes
1answer
23 views

Problem with Settings API: changes are not saved after submit

I'm writing a plugin "Paid Post" with some options. I made a settings page for my plugin, and it displays OK, but when I'm pressing "save changes" button, the option I have do not change, it just ...
0
votes
1answer
38 views

How to fix AWS SNS API end point code that cause site not to load?

I'm trying to create an API endpoint in a Wordpress site that can receive AWS Simple Notification Service notification. I have this working now, but on the front end, the site does not load. Here are ...
0
votes
2answers
17 views

Gravit Forms Notification send after 3rd party API response

I have a Gravity Form that on submission sends the data to a third party API. It is connecting with the following code and saving the data through the API. However, I'm now trying to figure out how to ...
0
votes
2answers
331 views

This page can't load Google Maps correctly [closed]

I am trying to get map from address but there are appear some error like You have exceeded your request quota for this API in my console so can anyone help me to fix this. My Javascript code look ...
0
votes
0answers
42 views

how to filter events with the eventbrite wordpress api

I am creating an event page on wordpress that pulls the eventbrite events data including thumbnails, title, descriptions, cities, etc and since, there are so many events, I would like to add a way to ...
0
votes
1answer
12 views

Periodically Query an external API on wordpress site

I am creating a wordpress site that will periodically retrieve data from an API and use that data to update info in the wp_users table. I don't really know how to go about this. I'll start with 2 ...
0
votes
0answers
25 views

Login and registration integration with 3rd party API

I have a 3rd part API that regiter/log in users to its system after buying a product, I want to integrate this API with the login and registration. Scenarios: 1. WP user login -> call API for ...
0
votes
1answer
16 views

email address non required

I am developing a website and an application for it using Woocommerce and Ionic with the help of Woocommerce's API. I'm trying to make email field in the register page optional and make customers ...
0
votes
0answers
104 views

Post to WordPress API using cURL and login cookies

I want to post from one WordPress install [SiteA] to another [SiteB] using the http API and cURL. I have found plenty of JS examples where the auth cookie is loaded into the browser, and then an AJAX ...
0
votes
1answer
55 views

Calling an API to do authentication / user login

I'm relatively new to wordpress and am working on a customized site. I have an API endpoint that I'd like to call to do authentication, because our users are going to have their credentials stored/...
0
votes
0answers
29 views

Deleting custom post type from external API via wp_delete_post

I've been working with an external API to pull in data and create what's essentially a job board via custom post types with wp_insert_post. My concern is that once these jobs/custom posts are removed ...
0
votes
0answers
22 views

wp_remote_get is stripping out Link header values

Using this code: $get_webinars = wp_remote_get('https://link.com/api/v1/accounts/6/courses?per_page=250&include[]=syllabus_body', array( 'headers' => array( 'Authorization' => '...
0
votes
1answer
47 views

how to fetch posts from Api in chunks or parts?

I'm working on a Hubspot Api and trying to fetch all blog posts through api, but the api limit is only 20 post each time and i need to get 1960 blog posts. So how i supposed to do that? Is there any ...
-1
votes
1answer
279 views

How to login via wordpress api and get user details?

I want to login via wordpresss api. I tried with "/wp-json/wp/v2/users" . but it just returns user 1 details. My goal is login via api and fetch all profile information.
2
votes
1answer
34 views

Hide/show customizer controls based on other settings in Customizer

This may be an easy one for those who know jquery. So, I have two customizer controls. First one is lmscore_improved_summary which is a checkbox. And the second one is course_instructor_layout. So ...
0
votes
0answers
51 views

How to integrate Anki into WordPress

I want to integrate spaced repetition flashcards (like Anki) into my WordPress website so my students can create their own flashcards in their dashboard. Is there any way I can do this? Any leads will ...
0
votes
2answers
17 views

How to find out programmatically whether any cache plugin is installed in the WordPress website?

I want to know Whether any cache plugin is installed in the WordPress website or not. At present, I get all active WordPress plugin ( Using get_option('active_plugins')) and check one by one, whether ...
1
vote
2answers
42 views

Wordpress site in China times out on requests to youtube [closed]

My wordpress site dj.pyromusic.cn is based in China, on a chinese server. Somewhere in the theme, or the site, it is making a request to youtube which is obviously blocked here, causing the load time ...
4
votes
2answers
334 views

Why is per_page not working with categories in WP API?

To start I've been searching through several questions and documentation pieces but it seems with WordPress' v2 many of the old questions are no longer valid. What I am trying to do is get all posts ...
1
vote
0answers
30 views

Expired session error (admin) when I try to make a call to WooCommerce api [closed]

I have activated the WooCommerce API that is mounted on the WP, the administrator session expires every 2 hours, the problem is that when I try to make a call to the WooCommerce API, it returns a 200 ...
0
votes
0answers
34 views

Extending the API I created to return category names

I created this api using a plugin called WP REST API Controller. But it didn't return custom taxonomy categories so I installed a plugin called WP REST API – Pure Taxonomies, it's returning category ...
0
votes
1answer
62 views

Pass CF7 form data to plugin

I would like to know if its possible to send CF7 form submission data to a plugin to process a payment using an API. The workflow should be as below, User fills in form on frontend (CF7 form) --> ...
0
votes
1answer
56 views

Developing Themes with React/Angular

I am learning WordPress REST API and ReactJs.I think ReactJS would be a great asset for developing faster themes and plugins.But I have a question.May be I am new to React that's why i am confused ...
1
vote
1answer
55 views

How to change the order (priority) of registered filters (or actions) (e.g. for the_content)?

Is there any way to change the order of filters for e.g. the_content before they are applied? What I currently have is the following ideas: /** * Print all filters for some hook. */ function ...
0
votes
0answers
147 views

WordPress and Cloudconvert

I'm a very basic WordPress user (I can handle some basic programming) wanting to create a website where people can just go in and upload a file to convert it to something else i.e. word to PDF. After ...
0
votes
0answers
110 views

Allow logged in WordPress user to access 3rd party Laravel API via OAuth

I have a unique situation that I'd love some help with if possible: My company manages a lot of WordPress sites. Each site has its own unique set of users (same users throughout all sites, but some ...
0
votes
0answers
26 views

How to use information from the database in the front-end?

Can I make a query to the database that returns all my products in Json form? And can I consume that data from my front-end to show what I want or filter it according to what I need? PHP: plugin_dir()...
0
votes
1answer
22 views

Mailpoet Sign up on Custom registration form won't work

I've been trying to solve this myself for hours but I can't figure out where I am going wrong. I have a custom registration form on my website and I would like to add a checkbox for users to sign up ...
0
votes
0answers
199 views

REST API Working for GET but not for POST?

I am trying to create a post through the REST API. I am able to access the API by getting the existing posts, as per the screenshot below: However, when I try to do a similar request to create a new ...
1
vote
0answers
27 views

PHP to Handle API Return instead of print

My API End point has return statement instead of print or echo : e.g. return json_encode($data); instead of print json_encode($data); I have a curl caller to consume my API. When I try to display ...
0
votes
0answers
330 views

Wordpress / PHP - Integration with external API

I have a form in Wordpress (contact form 7), when the user submits, I need to generate a json with the fields and send to an external API. Need to use with class: <?php if ( !defined( 'ABSPATH' ) )...
0
votes
0answers
57 views

get access token using wordpress connect?

I need to post to my blog using api so I use WordPress.com Connect and did the following: index.php <?php require_once dirname( __FILE__ ) . '/defines.php'; // Track a random state value in the ...
0
votes
1answer
66 views

Customizer JS API: Adding Setting Dynamically Not Working

I'm using the JS & PHP code displayed below to add a customizer setting dynamically. I know that saving the setting works because when I echo get_theme_mod('mySetting') within a theme template ...