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. ...

learn more… | top users | synonyms

0
votes
0answers
13 views

wp.editPost 'API Wordpress' doesn't edit custom fields

When I try to edit custom_fields with wp.editPost. Only edit the other fields, but not custom fields. Custom fields are created again(repeat fields), but will have to be edited. I am looking: ...
1
vote
1answer
18 views

How to build an API as a plugin

I want to create a REST API endpoint for a wordpress site where I can get a JSON response for different queries. I have tried the tutorial here, but I cant seem to figure out how it works. Do I need ...
4
votes
2answers
90 views

Using filters and actions for plugin API?

I want to integrate a public API to a plugin that I develop. The usual way other plugins integrate APIs is to define some functions that can be called by any theme or plugin. However, I think this ...
2
votes
0answers
36 views

Is there a limit on making calls to WordPress.org API's?

I am writing a plugin which makes calls to https://api.wordpress.org/plugins/info/1.0/{slug}.json Is there a limit on making calls to WordPress.org API's? For example once per hour or every 10 ...
0
votes
0answers
18 views

The product variation is invalid WooCommerce API [closed]

I create a new order with product variations on the api. This example works: "variations": { "pa_size": "regular" } But with this data it is not working: "variations": [ { "pa_size": "regular" ...
0
votes
0answers
13 views

Implementing the wp json-rest api

I have a client that wants to use the wp json-rest api to allow third-party sites to push custom posts (in this case property listings) up to our site. I've been looking at using the wp json-rest ...
0
votes
0answers
3 views

PHP API With JSON [migrated]

I have been trying to call a JSON feed using PHP the code I have used so far is $json = file_get_contents( 'http://football-api.com/api/?Action=standings&APIKey=********' ); $team_data = ...
0
votes
0answers
43 views

API to push post data to WordPress and populate custom fields

I've been looking around for related posts and such in the codex and other Q&A sites for several hours now, but haven't really come up with much so I thought I'd ask all you fine people out there ...
0
votes
1answer
29 views

Implement External API into Wordpress [closed]

I am trying to implement parts of an external api found here (http://api.football-data.org/alpha/soccerseasons/) into my wordpress theme. However I have no idea to get the data from X to Y. I have ...
5
votes
1answer
107 views

WordPress and multithreading

I'm working on a plugin. I've created an API that reads and writes to a custom table in the DB. This API can be called potentially from N clients simultaneously (and it really happens). I noticed that ...
3
votes
0answers
109 views

Retrieving pages with multiple tags using REST API

I'm having some difficulty understanding syntax to make a call from my application to the wordpress REST API when it it comes to getting pages that contain multiple tags. I have no problem with doing ...
0
votes
0answers
17 views

When is the REST API slated for a merge into core?

I read a few articles from last year that suggest that it was slated for a merge into core with 4.1, but unless I'm missing something, it doesn't seem to be there. (I can't find it in the changelogs, ...
0
votes
1answer
50 views

WP AJAX API with JS file

So I am having a hard time trying to set my contact form working on a theme I am building. It uses JqBootstrapValidation plugin. Someone told me that the reason this is not working is because WP is ...
0
votes
0answers
10 views

Using Customizer value outside WordPress

I'm working on a theme which uses a custom PHP script for contact form. The jQuery sends the form data to the script and the script sends the email. There are some parts of the scripts that should be ...
0
votes
1answer
50 views

Disable requests to api.wordpress.org

I need to suppress outbound requests to api.wordpress.org somehow. They are taking like 1 seconds each and take so many time to load a page when I'm logged as admin. I've searched for some solutions ...
0
votes
1answer
15 views

Integrating a hosted app with wordpress using the API

Say I have a hosted application that I want to tightly integrate with Wordpress to do the following: An admin logs into WP, then clicks on a link and redirects to my website. How can I have this ...
0
votes
0answers
68 views

Wordpress consume and display Rest API with custom url struct

Hi I am writing a plugin for wordpress which needs to display results from an external REST API. I need a brief overview on the best stategy to approach it. I can write all the code etc I just need ...
0
votes
1answer
46 views

Integrate WooCommerce to PromoSoftware Rest API

Hi guys been trying to get WooCommerce to send customer details via API to PromoSoftware Promosoftware api info add_action('woocommerce_thankyou', 'send_order_to_ext'); function ...
2
votes
1answer
23 views

Get Plugin Information from Multiple Sites Externally

I'd like to create a dashboard of sorts of plugins I'm using on multiple sites. I'm able to use get_plugins() to gather the information I want within each site, but how can I make that data accessible ...
0
votes
0answers
38 views

Theme Customizer API Live Preview

I'm having some trouble with getting the text that I type in the input field to appear on the page whilst I type (live preview). When I hit save and refresh, the changes are saved, they just for some ...
0
votes
1answer
47 views

Theme Customization API Changes not Saving

I'm having some trouble using the Theme Customization API for the first time. I'm following a tutorial, but I seem to be doing something wrong. I'm trying to allow users to change text on a page ...
0
votes
0answers
50 views

AdWords API with WP

Does anyone know a moron-proof way or guide to use the Google AdWords API with Wordpress? I can write PHP to a vaguely acceptable level. Just looking to populate a table with some basic live ...
0
votes
0answers
41 views

Insert custom post data in to MailChimp campaign email

I'm interested in injecting custom post type data in to MailChimp emails via their API. A simple undordered list of links to each post. After researching this and reading through MailChimp's ...
1
vote
2answers
61 views

Shortcode API: How to get name that matched shortcode RegEx?

I am looking for a way to reproduce what is described in the documentation: An overloaded shortcode callback. According to the docs, the $atts array will contain the string that matched the shortcode ...
0
votes
0answers
37 views

Can users signup via the new REST API

I am building a mobile app that is a companion to a Wordpress site and will be retrieving and submitting data via a WP plugin built using the new REST API. Users will need to be able to create ...
0
votes
2answers
41 views

Custom permalink structure for remote content pages

I'm trying to create a WordPress site that integrates with a very specific CRM in a remote server. The CRM holds a number of entries that should be displayed on the site, but if possible I'd like to ...
0
votes
0answers
42 views

Handling Massive Amounts of Data in a Wordpress Plugin

I've been working on my own version of a Youtube Post Importer plugin for Wordpress and I've run into a bit of a wall. I'm using the 3rd version of the Youtube Data API seen here ...
1
vote
1answer
129 views

Displaying Content with WP Rest API

I have been spending some time working with the new Rest API. I understand what it is doing but I don't understand how the JSON is used to actually display the content on a page. I have been fooling ...
1
vote
0answers
44 views

Get nav_menu items as a tree

Is there any way to grab the nav_menu items as a tree-like structure? By a tree-like structure I mean something that would preserve relationship between child and parent items, like so (this is just ...
0
votes
1answer
83 views

Best way to hook a custom url?

Let say I've a custom page with slug created "/products", I want user will be able to POST to a form with url "/products/create" and allow us to render some JSON output. The "/products/create" page ...
0
votes
1answer
44 views

How would you associate location data with a post?

I'm just wondering how you would associate several addresses to a post. My first guess is to create a custom post type with custom fields, then make an API call to Google Maps for the long and lat, ...
0
votes
0answers
55 views

wp_publish_post to saved draft, permalinks broken

I'm creating a system, where some custom post drafts are being prepared, and after certain actions taken by moderators it is being automatically published. So, first I create post draft like that: ...
6
votes
4answers
962 views

Is there a JavaScript API? How to access public and private data in JS?

According to this post there is no built-in JavaScript API for Wordpress. Therefore developers who want to build on AJAX seem to come up all with their own solution which doesn't seem right to me. ...
2
votes
1answer
42 views

API in numbers?

does anyone knows how many functions Wordpress has? I mean, are the more used functions around 100 or more than 200? ps: I am trying to build a catalog of the API and wrap it behind a visual ...
1
vote
0answers
66 views

Call wordpress function outside wordpress

I am writing an script to get wordpress posts and user data outside wordpress files and folder, this script run by side of wordpress installation but will fetch data from wordpress as explained below. ...
3
votes
1answer
78 views

Ask user permission when activating a plugin

Is there a specific Wordpress API way to ask the user's permission for something when activating a plugin? Due to the Wordpress plugin directory policy I have to ask the users consent for the ...
0
votes
0answers
17 views

hide certain settings from showing on options page

I'm working on a plugin that hides certain settings in the General Settings page, like "WordPress Address (URL)" "Site Address (URL)" , but I want the rest to show. How can I achieve that, should I ...
0
votes
0answers
88 views

Wordpress plugin, create page for API

I'm just starting with creating WordPress plugins. What i need to do is to create the page where I'll be able to display JSON/JSONP response. I would like to get some advices how to do it correctly. ...
0
votes
0answers
32 views

XML RPC -> Create User

I am using the WordPress API via XML RPC and it does not support creating new users. How can I go about sending a users first name, last name, email, password and photo to the XML RPC to achieve ...
1
vote
0answers
173 views

Submit comment via JSON from Android device

I have a Wordpress blog together with a little Android App, developed by myself. Now I want to expand my app a little. My goal is to implement a kind of live ticker. The function is as follows: On my ...
0
votes
0answers
221 views

Is there any way to Integrate WordPress with Imgur for Image Hosting

I wanted to use Imgur for hosting all my WordPress website images. Till now I know how to integrate Imgur with a simple form using an upload script. The process is well explained at Subin's Now what I ...
0
votes
0answers
42 views

Show WP content on different PHP Sites

we are about to start developing a big dynamic web project (Probably on ZF2) which will have some modules&tabs to act as CMS module (displaying news, galleries, posts etc). Let's assume we have ...
1
vote
1answer
139 views

Wordpress JSON API remove posts from a specific category

I have installed Wordpress JSON APi plugin, the idea what I want to do is to retrieve all posts from a websites except a specific category for example with ID: 434. I need all posts except from this ...
5
votes
2answers
332 views

Passing a hardcoded page/post ID into `get_post`

I see people using this to pull in page content on their home pages, remove specific categories from archives etc.. e.g. $post = get_post( 5 ); Someone suggested this was bad practice. Why is it ...
0
votes
0answers
157 views

How to add events to a Google Calendar using an html form on Wordpress page

I have implemented a Calendar onto a Wordpress page which uses Google Calendar to display events via XML. I am looking to add, edit and delete events from my Wordpress page, I am aware of the API and ...
4
votes
0answers
220 views

Is it Possible to Extend WP Customize JS Methods?

I’m wondering if it’s possible to extend the methods of the anonymous api object in wp-admin/js/customize-control.js. I need to overwrite one of these methods with my own custom logic but I suspect ...
0
votes
0answers
53 views

Upload media to WordPress through a web service

I would like to create a plugin through which I could expose a web-service for the media in WordPress. This service would allow external applications to upload and delete medias. Of course, the user ...
0
votes
0answers
82 views

How to structure WordPress plugin to display data from API

I am creating a plugin that connects to a remote API that has car listings and displays the data that's returned in that call. The plugin essentially does not need to interact with the WordPress ...
2
votes
1answer
97 views

Send Data to Wordpress from kiosk

I need to get a data from kiosk (think specific ATM machine) to wordpress database. Kiosk service providers told me to give them Gateway URL and Request format to send data. Im stuck on this, I dont ...
0
votes
1answer
100 views

Extra fields on categories that is available via the WP-API?

I want my posts to belong to a taxonomy with a couple of extra fields such as category_icon, category_quick_facts etc. I want this taxonomy (with all of its fields) to be available via the WP-API. How ...