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

1
vote
0answers
84 views

Best way to integrate contact us page with wordpress REST API

I want to integrate contact us page on my site. I am using Angular for frontend and WP-REST api. I want to capture Fullname, email, subject and Message but I am wondering what is the suitable way to ...
0
votes
1answer
87 views

Send Order Confirmation automatically to customer's mobile number

I'm trying to implement below SMS API from Textlocal.in which I have received. I want to send automatic order confirmation text message to customers placing an order on this website. ...
0
votes
1answer
32 views

How can I create a rearrangeable list of items like OptionTree offers with the Theme Customization API?

I have a theme that currently uses OptionTree, I'd like to move to the WP Theme Customizer API. In OptionTree I can have a list of items that can be edited and drag and drop rearranged. Is there a ...
4
votes
1answer
211 views

how to authenticate for the REST API from a plugin and from command line

I want to try the new REST API but I'm not used to this kind of things. Basically, I want to use it to GET custom posts via ajax and show on the website frontend (I'm building an ajax product ...
0
votes
0answers
33 views

XMLRPC: How to retrieve possible custom fields for a new post?

I'm planning to implement certain XMLRPC elements in my external web application. If I'm passing wp.newPost as the method, how can I get the possible custom_fields? I don't have access to the ...
0
votes
1answer
45 views

Querying Posts Using JSON API

I am looking at the WordPress JSON API Plugin. What I'd like to do is query all posts in a custom taxonomy term called wales. I have been able to get all posts in the post type listings using this url ...
0
votes
1answer
48 views

Searching & displaying results from the Wordpress database on another (Multisite)site

We have site 1, where there is a custom posttype called listings. On site 1 we have included a search/filter facility, but we have been asked to display this information on a completely separate, ...
0
votes
0answers
45 views

Integrate Stripe api into Bedrock/Sage theme

My question is how do i get WordPress to recognize my new class so i can use it in my charge-card.php AND how do i get it to load Stripe in my actual class, using doesnt seem to work. I'm pulling in ...
5
votes
1answer
843 views

Query WP REST API v2 by multiple meta keys

Using v2 of the REST API, I'm wanting to query some posts by multiple meta keys. With v1 I was able to format the url like &filter[meta_value][month]=12&[meta_value][year]=2015 and it worked ...
0
votes
1answer
25 views

basic wordpress api endpoint to serve a key-value dictionary

i am using wordpress JetPack JSON API to serve a self-hosted site posts to a mobile app. i need to serve a basic key-value dictionary from the same site admin panel to manipulate some settings in the ...
0
votes
2answers
25 views

get_month_link uses what wordpress template?

I tried using archive.php and category.php but always index.php is used of my template. How can I customize what template file is used?
0
votes
1answer
84 views

Should I store external API data in my WP database or keep it as a transient?

I am in a situation where I need to use data from an API (XML) served by a third party in my WordPress site. The data will be updated on that third party application. Specifically this is data about ...
0
votes
0answers
15 views

Wordpress Customizer - reload controls

I have several controls setup, one of which is a custom multi-select field which allows you to select several different options, based on these selected options I tailor make other sections/controls. ...
0
votes
0answers
117 views

Wordpress REST API not returning all posts

I am trying to get the json data of my posts. I have tried with both v1.2.4 and v2 of the REST API plugin. If I enter http://example.com/wp-json/posts?type=magazine or ...
0
votes
1answer
151 views

Help using acf/save_post hook to connect to Untappd API and update_field [closed]

What I am trying to accomplish is: when I save a or update a post, I want to access the Untappd API, grab a link to an image, and update an ACF field with that link. I am attempting to use the ...
0
votes
0answers
89 views

Get private posts by Wordpress API

Now i'm using Wordpress API for my iOS app and I have a problem with get posts API: I want to get all visible posts of a site ( all public posts, event posts with password ) but I can get publics post ...
0
votes
1answer
20 views

Cannot get transient to work on shortcode, Moz API

I'm new to transients and have been having a tough time switching over. I was able to fix my shortcodes for Facebook and Twitter API, but I can't get Moz API to work as a transient. Below is the ...
0
votes
0answers
11 views

Tie specific functions to options-update for limiting API requests

I'm coding an update for my Mollie payment gateway plugin for WordPress (for Easy Digital Downloads). The old plugin only performs one API call to the Payment Gateway, when processing a payment. The ...
0
votes
3answers
1k views

create web service for android app using wordpress website

I have to create Web services for android app using WordPress Database. where user can login and register using android app. that record will be saved in WordPress database. display All the posts of ...
0
votes
1answer
58 views

Define PHP variable from a seperate API if statement

I am trying to put together a function that will echo certain text based on a range of numbers. One of number(s) I am trying to compare against is echoed in my template as such -- <?php if ( ...
0
votes
1answer
470 views

REST API for Multisite

Is there a WordPress REST API for Multisite? I know this is fully functional for normal WordPress, but does the API also allow usage of Multisite?
0
votes
1answer
67 views

Programmatically Upload File to Wordpress Using an API [closed]

I believe there is a WordPress API that can be used to programmatically upload a local file from a Windows Documents Folder using any application (like C#) to upload a file to the WordPress uploads ...
5
votes
0answers
358 views

WP/WooCommerce REST API cart/checkout/order [closed]

Since the WordPress Rest API is getting merged into core and WooCommerce extended their API as well I stared to wonder how it would be possible to build an entire eCommerce website with it. When you ...
0
votes
0answers
22 views

Do you see any problems (mainly security-related) with how I've used wp_ajax_* actions?

I am writing a Wordpress plugin that will allow logged in users to manage a specific resources via WP admin interface. These resources should then be made available to an Android app, but only users ...
0
votes
2answers
407 views

Wordpress SMS API integration without plugin

I am struggling with SMS sending in WordPress without plugin, I have a, API, but that API is not working. Example: function mysite_woocommerce_order_status_processing( $order_id ) { ...
0
votes
0answers
11 views

Wordpress API menu theme location assign doesen't work for second+ item

I'm trying to create 2 menus, one main menu and a footer menu. The script below creates the menus and assigns the pages but it cannot assign the second menu and onwards to the theme menu location. It ...
1
vote
0answers
120 views

selfhosted site, slow REST API-calls

I'm using Wordpress REST API to access some posts from an app were creating, but the api-calls are really slow! if i'm using the domain in the call like this: ...
0
votes
1answer
98 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
41 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
1answer
59 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
22 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
235 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
47 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
22 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
202 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
43 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
270 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
256 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
138 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
78 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
218 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
235 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
252 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
117 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
1answer
253 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
76 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
37 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
59 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 ...