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
1 answer
9 views

Forminator + Hubspot Workflows

I need to send Forminator form data to a Hubspot workflow for a client. This doesn't seem to be working function send_form_data_to_hubspot($form_data) { $hubspot_api_key = 'MY_API_KEY'; $...
0 votes
1 answer
26 views

Adding Microsoft Teams Incoming Webhook to WordPress, Problem with Rest Route?

I am trying to implement an incoming webhook on my WordPress website to send a message to MS Teams when I receive a form submission. The message includes an ActionCard with a multiple choice input ...
0 votes
1 answer
63 views

Login and register by API

When we install WordPress with Softaculous, a Login button appears and we log in to the site without entering the username and password we pressed. We have a site where we sell digital subscriptions. ...
  • 222
0 votes
0 answers
19 views

Get API from external source and save in cutom post type

I am new to this API thing, I have an external API that contains 345 products. Product fields are feature images, product descriptions, and a few meta fields. I know how to create CPTs and meta fields;...
  • 51
0 votes
0 answers
9 views

Woocommerce API for calling products by Category ID

I belong to a Non Technical background. I have recently built an app from freelancers, Now I am looking to call the products from woocommerce by using category id. Can someone suggest how can I do it? ...
0 votes
1 answer
28 views

Using Wordpress API to mass update posts freezes the server

Our site has recently been infected and a malware code was added to all the 5300+ posts. I wrote a simple app using Wordpress PCL to update the texts of all posts. But after updating a couple hundreds ...
0 votes
0 answers
22 views

Unable to retrieve Users (Not logged in) through WP Rest API

We are able to retrieve Rest API results of our WP database, running a Learndash plugin. We can retrieve details while not logged into the WP site, although limited (10 records or so). While logged in ...
0 votes
2 answers
58 views

Programmatically creating posts based on external JSON feed (asynchronously)

I am currently trying to create a Wordpress plugin which create posts in the Wordpress database based on data from an external JSON API. As an example this NewsAPI feed could be used: https://newsapi....
  • 21
0 votes
2 answers
84 views

External api call using wordpress

I want to start a new website and chose wordpress as my cmd, but im having a restriction. The website is all about api request to other websites and i triedto get an api to test it as an example. ...
0 votes
1 answer
78 views

Is it possible to create post in wordpress using postman?

We have tried to create a post in WordPress using postman, can't able to create one since we have received an error as you are not allowed to do this action Even though I entered the admin login, it ...
0 votes
1 answer
22 views

How to write a plugin that "listens" every time, an edit occurs?

Let's say I want to write a plugin that replaces (i.e.: overwrites) every src-tag of every iframe-element on a WP-Website with a custom string AND the plugin shall watch every new post or page-edit ...
  • 103
0 votes
0 answers
22 views

move setting data from wordpress api to codestar freamwork

I am coding a plugin that uses the Star code framework It should be mentioned that I had written this plugin using WordPress API before. Now I want to integrate and make it more advanced, but I ran ...
0 votes
0 answers
14 views

Create WordPress account on different domain when WooCommerce order completed

I have 2 domains with 2 different WordPress instances: shop.example.com (WooCommerce) courses.example.com (LearnPress) When someone buy course from shop.example.com I want to automatically create ...
0 votes
0 answers
24 views

display posts, pages and custom post types from another wordpress site

I have 2 sites one acting as a parent and the second acting as a branch of the organization. The sites are on different domains and databases. I want to display on the branch site some posts and ...
  • 103
1 vote
1 answer
25 views

Store large dataset in WordPress installation temporary

My WordPress plugin depends on a large dataset (around a megabyte). The dataset is downloaded through REST API and then decoded to a PHP array. Right now the dataset is downloaded on each page load ...
0 votes
0 answers
31 views

Send PUT remote request with BuddyPress checkbox

I am trying to create a code that when a BuddyPress user set active a Xprofile field checkbox a PUT remote request will trigger and update a single property of json endpoint, but i am not able to get ...
1 vote
1 answer
66 views

Why is this specific API request failing when sending via wp_remote_post?

I'm pulling my hair out trying to make a POST request to an API endpoint using wp_remote_post. The API needs a request with content-type multipart/mixed but WordPress doesn't seem to play nicely with ...
  • 111
1 vote
2 answers
28 views

How to cut a section of a URL from a string with a regular expression?

I am pulling a response from an API using PHP to display a list of content on my WordPress website from an external service. The way they have their API set up, I need to create a loop that checks if ...
0 votes
1 answer
32 views

How can I send api calls from my plugin?

I have a collection of REST APIs that our android app uses. We use POSTMAN to send requests and troubleshoot them. Now, I am working on a plugin where I am trying to send API calls to all the ...
0 votes
0 answers
12 views

How to update WordPress Plugins in your own maintance application?

I have an inhouse application for managing clients and their websites. Now the idea is to add maintenance for the WordPress websites inside of the application but I can't seem to figure out how to ...
1 vote
0 answers
16 views

Anyway to disable the auto excerpt creation?

I am using Wordpress as a headless CMS and getting the posts from the API endpoint in 11ty and I'm wondering if you can disable the auto excerpt generation? I know you can do it in PHP but I can't do ...
  • 11
0 votes
1 answer
333 views

Update post / page using API + python

I'm trying to update posts using python and API, the issue that I keep getting code 200 but the post doesn't actually get updated! here is my code: import requests import json import base64 url ='...
  • 63
0 votes
0 answers
15 views

Adding Mailchimp API key dynamically

Good day everyone i am creating a custom plugin and i am connecting it to the mailchimp api it's all working but i have something to change i want to add the api key or list id in the admin side which ...
  • 3
0 votes
1 answer
60 views

Custom plugin contact form connecting to mailchimp API

Hi everyone im new to api and i am having a hard time wrapping this code that i got on the internet . i am creating a custom plugin in wordpress and i am trying to connect it to the api using ...
  • 3
0 votes
0 answers
17 views

Fetch products with filter by similar categories at same time

Do you know how I can filter products with several categories at the same time using woocommerce rest api v3?
0 votes
0 answers
12 views

Am having issues intergrating this api into my wordpress site, any help please?

this is the api code from rapid api <?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://gas-price.p.rapidapi.com/europeanCountries", ...
1 vote
1 answer
92 views

base64_encode conflict with convert_smilies in wordpress

I am trying to show image in my wordpress website which get from third-party. They give me raw data of image. For showimg image, I need to convert raw data(which get from third-party) to base64_encode....
2 votes
1 answer
161 views

Trying to save an object into post meta with wp.data.dispatch('core/editor').editpost

I am using wp.data.dispatch('core/editor').editpost to try and save an object as a value into post meta. I keep getting an error saying. "Updating failed. firstName is not a valid property of ...
0 votes
1 answer
267 views

get_body_params() is always empty in POST request

I am registering a custom route like this : add_action('rest_api_init', function () { register_rest_route( 'professeurEQ', 'statistics', array( 'methods' => 'POST', 'callback'...
0 votes
0 answers
10 views

How to get post category and author name for cusmot API?

I want to get the category name and author name for custom API function vw_blog() { $args = [ 'numberposts' => 99999, 'post_type' => 'post' ]; $posts = get_posts($...
  • 1
0 votes
1 answer
157 views

How get JSON from external API on every page load if not existing in transient?

Clarification: I'm building a site that will show the profiles of different agents (or specialists) in grid based cards. Each of these profile cards will show the online/offline status of the agent ...
  • 29
0 votes
1 answer
19 views

Plugin index page code executes multiple times

I am developing a plugin that sends emails to users on activation. I am using SendinBlue API for this purpose. Right now, I am testing with just one email address (hardcoded) and static content. The ...
0 votes
0 answers
12 views

Customizer List of Items

I am working with Customizer api for text for example $wp_customize->add_setting('basic-author-callout-text', array( 'default' => '', 'sanitize_callback' => array( $...
0 votes
0 answers
35 views

Export post data with xml to other site using php soap

At one non-wordpress site, I have to show dynamic posts (depends on chosen result), it`s thumbnail, header and short description. Before, I have to fetch these data from other wordpress site. Can I do ...
3 votes
1 answer
123 views

Is there a way I can fetch the WordPress Developer Code References with an API?

I would like to fetch the WordPress functions, methods, classes, and hooks from here: https://developer.wordpress.org/ in JSON format. I know that it is a WordPress site, and that I can use WP API to ...
0 votes
1 answer
35 views

Building a REST API for your web app exposes primary keys of DB records?

I'm new to WP-REST and need to build a REST API for a wordpress project, but I'm somehow wondering about one aspect. Good practices say, and the built-in WP API for posts also shows, that you should ...
  • 421
0 votes
0 answers
23 views

how to use nimble-API and Display data?

I want to get the contact resources displayed by doing Nimble API, but I do not know how these resources are displayed. How can I change the JSON code in PHP? [this is the link I check but can not ...
  • 1
0 votes
1 answer
20 views

How to set category correctly for a custom post created by a remote API call?

I'm using a plugin - "cleverness-to-do-list" (https://wordpress.org/plugins/cleverness-to-do-list/#description ). I'm aware that the plugin is closed, but I've updated it at my end and ...
  • 113
0 votes
0 answers
86 views

How to search by slug and old slug in single API

I need to search for wordpress posts with input slug or old slug only 1 parameter in single API. Now I'm using 2 url: 1. /wp-json/wp/v2/posts?slug=hello-world 2. /wp-json/wp/v2/posts?meta_key=...
1 vote
0 answers
159 views

How To Save Data From Remote APIs To ACF?

I've been attempting to ingest remote data from an api partner into Wordpress. To data I've used wpallimport plugin, but it's quite limited. How would one connect with a remote api and then save the ...
1 vote
0 answers
228 views

How to disable inline css styles generated by Gutenberg editor?

I've got Genesis-blocks plugin installed (it got updated from Atomic blocks). I am using blocks and resuable blocks to create pages. The problem I am facing is, most of these blocks inject their own ...
  • 121
0 votes
0 answers
31 views

Pull in posts using post meta for REST API

So I wasn't able to find much detail about this, so I wanted to ask the community to see if I can get an answer. So let's say that I have the following: $this->global_endpoint = 'https://example....
  • 1
0 votes
1 answer
123 views

How to set a template with wp_insert_post

I'm trying to set my template to the Elementor Canvas when using wp_insert_post but it isn't working. It is creating the new page fine but not using the canvas. What am I doing wrong? { "action&...
0 votes
0 answers
245 views

Working Around rest_forbidden_context

I am trying to request page content, but the raw page content, calling this route: "/wp-json/wp/v2/pages/" + id + "?context=edit" In response to this I get: code: "...
  • 101
0 votes
1 answer
97 views

WP Multisite - Additional subdomain on the site for API purposes

We have WP multisite network with WooCoomerce shops. All the network is served through Cloudflare CDN. Our ERP is accessing WooCommerce API of each website in the WP network. Since there so many, ...
  • 21
0 votes
1 answer
35 views

Featured Image and Tags problem

I am very new to PHP and am having an issue with an amazing advanced Wordpress tutorial which showed how to use ACF and functions.php to scrape and import the data directly into my Animal Shelter ...
0 votes
2 answers
870 views

Wordpress REST API - get custom taxonomy category posts

I want to use Wordpress REST API to get the posts that are inside a custom taxonomy created by the theme. The taxonomy is called "my_portfolio" but if I use this I have this response: {&...
  • 101
1 vote
2 answers
2k views

create timestamp links to jump to specific times on rumble videos

I am trying to allow visitors to seek specific times on the embed rumble video inside the wordpress post by clicking to timestamp links. I can do it for youtube videos using Skip to Timestamp plugin ...
  • 111
0 votes
0 answers
109 views

Allow REST API Endpoint to specific user and hide from public

So I've been working on trying to figure this out, but I can't seem to get the right answer or even find docs online regarding this issue, so I'm reaching out to the community to see if I can get some ...
  • 1
0 votes
1 answer
235 views

cURL External API request displays content above other content on page

I've built a plugin to display our customer feedback on our WordPress website. We use an external feedback system called 'Customer Thermometer'. They have a simple API to use a URL to request stats ...

1
2 3 4 5
15