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

Pull info from Soundcloud embed into a custom field?

I'm working on a blog that has over 4000 posts, most of them have a soundcloud embed iframe in the post. I am creating a new custom field (using Advanced Custom Fields) that uses a custom player ...
0
votes
1answer
33 views

Wordpress plugin shortcodes not outputting anything

I'm in the process of creating a WordPress plugin that retrieves information from a Minecraft Server. I have the script to do this working fine as just a PHP script, however, when I try to convert ...
0
votes
0answers
36 views

WordPress API - count posts

Is there a way to count the number of posts / pages via the WordPress API? I'm wanting to insert a post then check, using the API, that the count has gone up by 1. I've looked at ...
0
votes
1answer
21 views

Can an RSS item be altered with a hook?

I would like to alter the content of each item in a site's RSS feed with a regular expression. The rss2_item hook is close but it is run just after the item has been output, so is only really useful ...
0
votes
0answers
179 views

How to get Slim framework routes to work?

Using the Slim Framework for a REST API to query post data in a custom plugin: // custom plugin file // code reworked from https://github.com/Botnary/wp-slim-framework @define('SLIM_BASE_PATH', ...
0
votes
1answer
38 views

Delete Transient when clicking 'Save Changes' on options page

I have an options page setup for a ticker tape on a theme I am working on. It has a number of options such as Title, number of posts to display and what categories to display posts from. I have also ...
0
votes
1answer
21 views

create importer with importer api [closed]

I want create new custom importer but I don't know which way is best I googled and find out wordpress has an importer api but there isn't no tutorial and reference Can you help me?
0
votes
0answers
12 views

Which filter called the function [duplicate]

I've created a function that does some replacing of urls and is called by several filters: add_filter( 'theme_root_uri', array( $this, 'replaceCDN' ), 99, 1 ); add_filter( 'plugins_url', array( ...
0
votes
1answer
103 views

Users credentials and syncing from third party with WooCommerce

I am trying to build a web store for a client who has already had a mobile app. the mobile app team would like to sync user's password as they update it both on the mobile app and the web store. ...
0
votes
1answer
40 views

Wrote a WP Cron Plugin and it triggers a fatal error upon activation

I'm writing a WP Plugin for one of my sites that hooks into a public API to get app data and save that within Wordpress to allow for WP to be able to search & filter the data based on new ...
0
votes
1answer
197 views

multi-language multi-site with REST API

I am creating a site with multiple sub-sites that should support multiple languages and be queryable with a REST API. The site itself is mostly a CMS with various pages and maybe some posts for ...
1
vote
0answers
236 views

The remote server returned an error: (404) Not Found [closed]

I received an error when I tried to get all product details from WooCommerce API. I installed WooCommerce, created API keys and enabled the REST API. I wrote C#(3.5) code like below. Step1: Created ...
0
votes
0answers
93 views

Load data via xml api and display it in your posts and pages

it is possible to implement xml api data in WordPress site, i found a plugin that support only json https://wordpress.org/plugins/json-data-shortcode/, how to load data via xml api and display it in ...
0
votes
2answers
67 views

How to load API's in WordPress?

I am trying to learn WP Theme development. And I am wondering what's the proper way to load api's? For example Google Maps: <script src="http://maps.googleapis.com/maps/api/js"></script> ...
1
vote
0answers
132 views

WP OAuth Server “The grant type was not specified in the request”

I've installed WP OAuth Server to make an SSO thing with my Wordpress, but I can't get it to work proper. I followed this example on how to set up Single Sign On. I'm stuck at Step 3. I get this ...
0
votes
1answer
176 views

Use WordPress user database in external php application

As the title tells I'm looking for a solution on how to use my wordpress database in an external php application. I want to use Wordpress because I want only one place for users. One place one ...
0
votes
0answers
18 views

Is there a way to tell if a shorcode's handler is being run before or after the content formatting filter?

Apparently (based on what I observe) WordPress runs every shortcode handler twice for every time that shortcode appears --- once, preliminarily, before the output is processed (and the output of the ...
0
votes
1answer
207 views

Passing form data via AJAX to REST API And displaying results

I'm new to WordPress but have been programming PHP for a long time... I searched a bunch of questions but couldn't find what I need. I have a page with a search form that contains a few parameters ...
0
votes
0answers
92 views

PHP > Scheduled Tasks > Sending daily email with dynamic API variables

I'm trying to write a PHP cron job that would call an API, return a set of numerical variables, calculate a second set of variables, and send an email to selected recipients with those variables ...
2
votes
0answers
207 views

How do I use the WP REST API plugin and the OAuth Server plugin to allow for registration and login?

Are there any example projects that do the same? I want to be able to login and register for accounts on my site via the API.
1
vote
1answer
61 views

creating shortcode to pull json array

Frankly - this may be a duplicate of another question I have out there. Sorry if it is. I'm learning this site and PHP/Wordpress development. I have partnerships with local sites that use JSON and ...
0
votes
1answer
35 views

Save values generated via API as taxonomy terms

I'm using the IMDB Connecter plugin to grab meta data for movies and I'm wondering if I can save some of the information it generates as terms in a custom taxonomy that already exists. What I want to ...
0
votes
1answer
52 views

Jetpack JSON API configure button not showing [closed]

Installed fresh WP on my Hostgator - shared host plan. Installed Jetpack, connected to wordpress but can't make the JSON API to work. After activating there's no Configure button just deactivate ...
0
votes
1answer
50 views

New Customizer Menu (WP 4.3) - how is called?

The new "Menu" in Customizer got released in 4.3. I need to know how to "get" to it. <?php $wp_customizer->get_panel(' ? ? ? ? ? ? ? ');?> Any help?
0
votes
1answer
109 views

I have to post data by AJAX in wordpress to another Website

I have to post data by AJAX in wordpress to another Website (http://123abc.com/register) .But I always get Error .This is my jquery AJAX code: <script> $(document).ready(function() { // ...
2
votes
1answer
82 views

Get a list of all WordPress.org Plugins?

I'm looking for a way to get the list of all plugins listed in the WordPress.org Plugin Directory. There is one other post I've found on StackOverflow regarding this which recommends using the ...
0
votes
1answer
17 views

API Functions to Register and Show WordPress List Tables

I am developing my own plugin and I am trying to figure out how to add WordPress List Tables to my admin page. I am aware I can write the the HTML myself but if there is an API method this is the most ...
1
vote
0answers
206 views

Woocommerce REST API - Add custom class [closed]

I want to create a customized class (let's called it WC_API_My_Product) for WooCommerce API that extends WC_API_Resource, basically it's a copy of WC_API_Products with additional features, so I can ...
0
votes
1answer
70 views

Does the WordPress API have Modal Dialogs

Does the WordPress API have a Modal Dialog like BootStrap does? In my WordPress Plugin admin page - the plugin settings page accessed through the Dashboard - I would like to have modal dialogs appear ...
3
votes
1answer
190 views

Sync posts from one WordPress site to another

I want to achieve the following - I have 2 WordPress sites hosted on different servers. Let's call A as sender site and B as receiver site. Whenever I add/update/delete any post in A, it should be ...
0
votes
1answer
44 views

WordPress keeps autoplaying my Youtube-Links no matter what I write

WordPress (with the LayerSlider plugin) keeps autoplaying my video no matter what code I use. Here's the embed-Link for the video: <iframe width="840" height="473" ...
1
vote
1answer
16 views

Example Dashboard Widget, Cancel not working

Working from the Code from Wordpress API Dashboard Widget Example: https://codex.wordpress.org/Example_Dashboard_Widget I am able to build the plugin, the number updates perfectly when I click ...
0
votes
0answers
141 views

Import facebook feed as a post in wordpress with 100,000 of posts

I need to import facebook feed of one of my facebook pages as posts to wordpress site using facebook graphic API. For this purpose I am fetching the json file with all the posts from facebook in it ...
0
votes
1answer
195 views

Wordpress C# User Login

I have a very basic C# login system first i've work with localhost and basic databasebase username-password but now i want to connect my project to my website which is wordpress then i realize ...
1
vote
0answers
27 views

WP Customizer - Prevent live preview

How do I prevent a widget being updated in the customizer preview if a widget field fails a JS validation check? More generally, is there any actual documentation for the customizer JS API? (I mean ...
0
votes
1answer
306 views

Convert HTML5/CSS3 site to Wordpress Theme (need a lot of plugins) or just use the API?

I'm a PHP developer creating a new site with a Wordpress backend. I'm niota Wordpress expert, I've managed to make custom page types in the old site's theme and can manage plugins etc but I'm not an ...
0
votes
0answers
19 views

Generate attachement to Post from featured image

I am using WP-JSON API Plugin. If i choose an image as featured that is allready uploaded in my media library it does not generate attachements Object in JSON like the example bellow. ...
0
votes
1answer
151 views

Return scheduled posts with WP REST API

I'm using WP REST API plugin for a custom web application and I need to get access to the scheduled posts of the target wordpress website. However I can't find any parameter or filter to achieve this ...
0
votes
1answer
116 views

How do I create a custom add media button modal?

I've created a custom media button for the admin in editing posts, but am having trouble figuring out how to create a view for the modal. I'm not trying to insert uploaded media; I'm trying to allow ...
0
votes
0answers
24 views

Given a url, is there an api to tell me if it would 404?

This may seem a duplicate to this question, but it's quite a different context. I have a multi-site that is managed by a Zend Framework application. Users can create their own blogs, which is done by ...
0
votes
0answers
71 views

Access RegOnline API per plugin

I am new and just starting with creating WordPress plugins.What i need to do is to integrate regonline API to WordPress. I would like to get some advice on how to do it correctly. Please find below ...
0
votes
0answers
32 views

Output API response on admin_notices within user_register hook

I am using the hook user_register to execute a function that makes a couple of api calls to do extra stuff on a remote site when a user is created from my wordpress backend. The api returns a response ...
0
votes
0answers
20 views

Update WordPress calendar from other APIs

My client has a holiday property site that he also has on. www.airbnb.com, www.homeaway.com and www.holidaylettings.co.uk If someone registers at any of these places, the calendars at the other ...
0
votes
1answer
14 views

Can a plugin differentiate syndication feeds from actual site views?

Is there anything in the WordPress API that I can use in a plugin to detect whether the current request to WordPress is a pull of the syndication feed -- as opposed to an actual view of the web-site? ...
0
votes
1answer
121 views

Google Places API With ACF [closed]

I'm creating a site that has a Venue custom post type, and one of the custom fields (using advanced custom fields) is the hours of operation for the business. I was going to manually find this ...
0
votes
2answers
57 views

Can i use init hook for API purpose?

My question title might be little confuse. Here is the scenario, For example: I am giving an API service from my wordpress site. Using it others can know few information. Like if they send a User ID ...
2
votes
2answers
401 views

How to get Wordpress Plugins Data in PHP using Plugin API?

I am trying to get the list of Wordpress plugins using the Wordpress Plugin API in a PHP page. Plugin API: http://api.wordpress.org/plugins/info/1.0/ I read lots of articles regarding this but they ...
0
votes
1answer
39 views

What is this HTTP_REFERRER “WordPress/4.1.2”

On our website we have huge traffic with same IP and referrer "WordPress/4.1.2; http://www.xxxx.com". The log line looks like: 62.24.2.2 - - [22/Apr/2015:17:28:15 +0200] "GET ...
0
votes
0answers
70 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: ...
2
votes
1answer
241 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 ...