Questions tagged [api]

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. In practice, most often an API is a library that includes specifications for routines, data structures, object classes, and variables.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

500: internal server error in wordpress dashboard?

500 internal server error, in wordpress for adding zoom live class. For school management system. I have successfully submitted api key and secret key. It's so 500 internal server error on the ...
0
votes
1answer
13 views

How do i post data to url with fields?

I am trying to post some data to a website called Jira and create a new issue there with the data I send. I did try it with postman and it works! But now I just need to implement this in code. So far, ...
0
votes
2answers
18 views

Ability to change homepage on Wordpress using API

Is there any way to change a site's homepage (Settings -> Reading), via API? We're running a React app with a Headless WP 'backend', and I'd like to let users change the homepage of their sites ...
0
votes
0answers
13 views

Unable to list orders using WC REST API v3, although listing of products and customers work [closed]

I currently run a webshop on WordPress 5.4.2 and WooCommerce 4.5.2. As instructed in the WooCommerce REST API docs, I am using the latest v3 REST API for WooCommerce. With this API, I can perfectly ...
-2
votes
0answers
28 views

Brainstorming: Wordpress and Fetch API

I need to display properties from an API connection. I have two pages layout, one display all properties (Archive like) and the other a selected property (Single like). I am fetching the API with JS. ...
0
votes
0answers
16 views

Import API into Wordpress Post?

Is it possible to use an API from an external MySQL database to create and update wordpress post? Is so, how? Thank you for your time Kimberly
0
votes
1answer
16 views

Is it possible to create new user from external form using REST API?

I created a new user (called external) in a WordPress site with manage users capabilites. I installed Application Passwords plugin to generate a token for that user. Now is it possibile to create a ...
0
votes
1answer
23 views

Sending posts from Python to WordPress

We are working on a platform that gets news from various sources and runs some NLP analysis on it. We have the backbone of the backend down, we're now trying to output our results on a feed. Since ...
0
votes
0answers
20 views

how to display dynamic data obtained from external sourced (API) within page content

I have a page that is passed a value as a query string parameter (www.example.com/uid=1234). I need to use that value to fetch some additional data via a 3rd party API and then display the fetched ...
0
votes
1answer
25 views

call funcution when clicking submit

I've built a WordPress plugin, this plugin has a form in front-end using a shortcode I need the submit button to do two things, first to send the entries to the database which I did it successfully. ...
1
vote
1answer
23 views

Can't use /wp-json/wp/v2/plugins API endpoint even as administrator

Using Basic Authentication as an Administrator, I am getting an error code 401 Unauthorized : [rest_cannot_view_plugins] Sorry, you are not allowed to manage plugins for this site. error when I ...
0
votes
0answers
19 views

Hook into the Admin Dashboard and redirect users

So I have a configuration that a API returns a ?code=..... to the URL inside my admin dashboard www.test.com/wp-admin. Is there a hook inside the admin where I can copy the admin url www.test.com/wp-...
0
votes
0answers
15 views

Obtain data returned from webhook

I connected a Wordpress instance with WooCommerce to a service that dispatches license codes using webhook called Subscription Created. Endpoint I'm sending data to also returns some data. I'd like to ...
0
votes
1answer
17 views

Update Customer JWT Woocommerce

I am using JWT to make call threw the woocommerce api. I created a kind of bot which is an admin user which I connect through JWT api to get a token. With the token at the moment I am doing calls to ...
0
votes
0answers
6 views

Opinion: Wordpress / Woocommerce API or actions and filters?

I was tasked to connect our Wordpress website / Woocommerce webstore with our new CRM Microsoft 365 Business Central regarding products, customers and orders. I started testing a basic connection ...
0
votes
0answers
11 views

Create Custom Payment Gateway in Woocommerce api

I want to attach different bank, Like Woocommerece don't already have, I'll use different bank's API, Can anyone guide how to create custom payment gateway plugin in woocommerce.
-1
votes
0answers
11 views

I'm receiving errors when I excute my wp insert function

I need to interact my website with an API in the XML format to receive the feeds and store them in custom fields inside WordPress .. I tried to write the code myself but I'm not the best with PHP so I ...
0
votes
1answer
17 views

Get /users/me details from Wordpress backend

Is there anyway to get the same details as /users/me api command but in WP backend? I have backend function that would get the user meta details custom api /user_meta public myFunc( $userId ) { $...
0
votes
0answers
19 views

mailchimp integration on a custom footer

I want the user to be able to opt-in to a MailChimp newsletter within a custom footer, which one. of our clients has asked for. The client also uses MailChimp so we therefore cannot use anything like ...
0
votes
1answer
9 views

Use a template for a specific url slug without creating a page

So, I'm grabbing a list of posts from one blog to another using the Wordpress API, I got the list of posts but now on click I would like to show the content of each individual post on my new website. ...
0
votes
0answers
13 views

Wordpress API single post

I'm grabbing a list of posts from Blog A to Blog B using the wordpress API, so far everything is fine, but how do I access the single post inside Blog B? How do I make it so when I access /blog/post-...
0
votes
0answers
18 views

WooCommerce - Change variable product image when only one attribute is selected

I'm aware that Woo questions are supposed to be off-topic here, but I've asked this question to WooCommerce support and they suggested that the only way to achieve what we're after is with custom ...
0
votes
0answers
7 views

How to integrate a 3rd party API into a search

I am new to using API calls in WordPress. I'm using a third-party application called Zype to manage video content, and I'm using their API to create a custom search query for the video content hosted ...
0
votes
0answers
28 views

Why does wp_remote_post returns an empty body response on certain endpoints?

Im gonna make this brief; Im using wp_remote_post to do a POST request to an external API. My local development environment looks something like "http://website.test". As of now I am ...
0
votes
0answers
22 views

Get JSON from API create with POSTMAN

I have to get JSON from a API created with Postman. It has a key. The structure of API it s very basic. It s something like this $_POST['clef_mic']; if ($_POST['clef_mic'] == 'password') { ***...
1
vote
1answer
33 views

Post body not working with wp_remote_post()

I'm trying to post with with the following code $userTokenApi = 'https://api.mindbodyonline.com/public/v6/usertoken/issue'; $args = array( 'headers' => array( 'Content-...
1
vote
0answers
26 views

Fetch post block/field data as JSON with Wordpress API

Usually find what I need from here without asking but seem to have run into something new, apologies if this has been answered elsewhere. I am building a site in wordpress which isn't my usual CMS but ...
0
votes
0answers
37 views

Trouble Accessing Gravity Forms API (GFAPI)

I'm having trouble figuring out where I should be registering my function in such a way that I can access the Gravity Forms API (GFAPI). At first glance, this may appear to be native to Gravity Forms, ...
0
votes
1answer
15 views

Is it possible to make website content available on another website?

Please I need help making website content available on another website through an API or something. Is this possible to achieve? I'd appreciate your response. Thanks
0
votes
1answer
50 views

Getting Wordpress fatal error when hitting WooCommerce API

I have made a script that extracts products from WooCommerce and a script that update stock in WooCommerce. The shop have about 750 parent products and total number of variants under these parents are ...
0
votes
0answers
18 views

WooCommerce return related products

I'm making a mobile app for my store. What I want is that I when fetch the products from REST API, it should not just contain the related_ids but I just want to add an extra property to each product ...
0
votes
1answer
35 views

wc_get_products() not return the images details

When I try to fetch products using the official REST API, returned product contains the a property named images which is an array and contains the URL to image of product. But when I fetch using this ...
0
votes
1answer
21 views

Do i need to use a plugin for third party api integration?

I am new to WP and was wondering if i need a plugin for third party api integration. I want to retrieve data form the jira api and display it on my WP site. If i need a plugin, which do you recommend? ...
0
votes
0answers
25 views

wc_get_products() return empty object

I'm trying to get all the products that exists in database, but my code return empty objects. just for the sake of testing, first I'm trying to get only 10 products, here is my code add_action('...
1
vote
0answers
16 views

How to add custom preview urls for some pages?

I use WordPress as a headless CMS through its API. When clicking on Preview it takes me to domain/slug. This works for most of the pages, however there are some pages that are under sub-path domain/...
0
votes
0answers
27 views

How to Grab Anime info using Jikan API and fill the value in Metabox

I want to create an Anime website. But I find it less effective if I have to manually copy & paste Anime information from MyAnimeList. So I want to create a system where users must enter the Anime ...
0
votes
0answers
16 views

How to Create a Simple License Controlled WordPress Plugin

I have wordpress plugin and i need it to be a licenced controlled plugin (using any keys or other). is there any tutorials for the same?
0
votes
0answers
32 views

Is there a way to get Google My Business photos on Wordpress with the API or other?

I need to retrieve Google My Business photos on Wordpress, I've read the API but find nothing on it. Does anyone have a lead on this ? I am not asking for something ready-made but simply for feedback ...
0
votes
0answers
12 views

Adding geographical information on a registration page

I'm trying to get my head around developing a delivery app for restaurants where I make a a WP site with WooCommerce and a local payment gateway. I need the app to only allow registrations from ...
0
votes
0answers
52 views

woocommerce REST api on the website's front-end

I want to use AJAX for product listing (with "show more" functionality), AJAX based search etc. on the front-end of a Wordpress/Woocommerce website. It seems like a simplest approach here ...
0
votes
0answers
21 views

Cart API created shows a same product for all logged in users woocommerce

We are creating Cart APIs for react APP.The cart shows the same product list for all logged-in users in woo-commerce. Tried with different plugins too. function get_cart(){ if (defined('WC_ABSPATH')...
0
votes
1answer
11 views

How can I display Only the first Array/Object?

By using Wordpress REST Api ./wp/v2/users/?_fields=id&orderby=id&order=desc Result [{"id":13},{"id":12},{"id":11},{"id":10},{"id":9},{"...
0
votes
1answer
32 views

Call external API

I have a wordpress site which have a form and when is submitted I want to send the data to an external API. In order to access the external API and I need to pass a 2Oauth authorization. How I can ...
0
votes
1answer
16 views

Woocommerce, finding the ordinal number of a purchase for a certain product

we are developing a complex Woocommerce website and an app which uses V3 API. Being sold products very valuable, we need to know the ordinal number of a purchase for each product. For example, we'd ...
0
votes
0answers
25 views

How to use following API with WordPress?

I have an old client who wants to integrate one system on their WordPress website. The company is fairly new called LYFSIZE which basically takes the picture of the users and provides them the exact ...
0
votes
1answer
40 views

WordPress custom API endpoint - how to make the request more flexible

I'm creating simple API endpoint to fetch custom post type items with specified category and tags. function my_awesome_func( $data ) { $posts = get_posts( array( 'post_type' => 'faq', ...
0
votes
0answers
24 views

Wordpress Rest API custom field not updating till i manually update the post

i m using a video theme, i have two custom fields called, actor and add new actor. if i add new actor , it automatically create a actor. and the name i put on 'new actor' field shows on 'actor' field ...
0
votes
0answers
20 views

Help to create the best plugin settings!

Can you help me about how to create the best WordPress settings for plugins? I have a custom setting page and I need to create some field with WordPress API. Actually I use this solution: https://gist....
0
votes
0answers
23 views

Remove unwanted fields from WP API response

I am making a mobile app that links to a Wordpress site. There are a lot of unwanted data from the API response and it would be great if I could remove it. How could I do that without touching the ...
0
votes
0answers
11 views

How to consume an extended api within wordpress with woocommerce?

I would like to know if with wordpress, using woocommerce, I can set up a quote page using an external api rest. In this case, the return of the page would be according to the fields filled in the ...

1
2 3 4 5
14