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
17 views

how to display term name angularjs

I've recently learned about angularjs and I am trying to display a term associated with a specific custom taxonomy. So far this is what I've tried in my partials file - <div ng-repeat="post in ...
0
votes
0answers
16 views

WP set auth cookie using Ajax is not saved to browser

We are creating an external dashboard that uses Wordpress data, obviously, we use WP REST API v2 We want total separation from the traditional WP Dashboard, but we also want to log in user "behind ...
-2
votes
0answers
18 views

Web Push API as WP-Plugin (but without external service)

With Firefox 44 the new web push api attracted my attention. Now, Safari, Chrome and Firefox support it, great! Therefore I search for a wordpress-plugin, that pushes automatically, when you post a ...
1
vote
1answer
17 views

REST API: How can I restrict a custom post type to only be accessible by authenticated users?

I have a custom post type configured to be accessible via the WP Rest API v2. How do I lock the access to this custom post type so that only the authenticated users can perform GET requests?
0
votes
0answers
11 views

Best practice for pulling in data from simple 3rd party API

We have a simple template in our WP site that will display a list of companies. Each company has 4 attributes (ID, name, logo, category/industry). We have been provided with an outside api ...
0
votes
0answers
8 views

How do I establish a connection between Firebase user database and WordPress?

I'm making a Website and an android app. The android app stores its user details i.e., username and password on Firebase database; I'm also making a website and I want a login in the website which ...
1
vote
0answers
9 views

Extending Wordpress REST API

I'm trying to create an API where external clients can authenticate users and reset their password through a REST API. I've already seen this: External WordPress API. However, it looks like this is ...
0
votes
1answer
35 views

WordPress.org Support Forum API

WordPress.org provides several API end-points for data about themes and plugins. For example for plugins there is the plugin_api: https://developer.wordpress.org/reference/functions/plugins_api/ And ...
0
votes
1answer
30 views

Using WordPress only for the backend, and using AngularJS as a frontend

I'm developing a web application for a friend who needs an online portfolio. As a learning experience, I'm trying to do the front-end with AngularJS and using Wordpress as a backend with the official ...
0
votes
1answer
16 views

How to get a post's associated taxonomies and terms in wp api v2

I am using angular to get a list of posts back from the post endpoint for the wp api. These posts have different taxonomies and terms associated with them. I want to use angular's search filters ...
1
vote
0answers
29 views

WooCommerce : Integrating SMS API not working

I'm trying to integrate sms api with woocommerce to send the automatic order updates to customer's mobile number which they have entered while placing an order. I've written below code in ...
1
vote
1answer
24 views

Disable Theme API / Front end (for API only environment)

I can't remember in which talk I saw this but there is a codex function to disable the front end altogether. I am not talking about the blank theme as mentioned here: Disable front end to use as CMS ...
1
vote
0answers
11 views

How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?

I currently have a theme with OptionTree installed. It is used to create a list of locations which are then visible in a dropdown in the header of the page. The display code with OptionTree looks like ...
0
votes
0answers
12 views

Customizer, change preview url when a control changes

I've a dropdown control that lists all pages of the website. When I select a page in the dropdown I would update the preview iframe to that page. There is the following method to change the ...
0
votes
1answer
24 views

Soundcloud Smart Player

I have a lyrics website on wordpress with thousands of lyrics, and I am looking to embed a player on each one. But I have realised it would be tedious and time consuming to do that. How would I ...
0
votes
1answer
23 views

Change post-slug using wordpress API? Change permalink of a post using php / jquery?

When calling wp_insert_post() see api there seems to be no possibility to set the post slug / the post permalink of the new entry. e.g. is there a way to check if: a string is possible to use as ...
0
votes
0answers
21 views

Using Wordpress as an API

I'm considering using the new WP API to power a mobile app. I also want to have a web frontend with a restricted membership area, BuddyPress as well as bbPress installed. I'm wondering though if ...
0
votes
1answer
92 views

Integrate product feed API in Woocommerce [closed]

I want to integrate an API for automatically import products from a 3rd party. I have the API for that . API documentation says as follows., We update inventory every 24 hours! The API ...
1
vote
1answer
19 views

Does it still make sense using json endpoint ep_mask now that there's the new rest api? [closed]

I was wondering... Maybe I don't get the point here, don't know. I think that the rewrite api is still usefull for creating beautiful frontend urls for regular users. But I'm not sure on adding a json ...
1
vote
1answer
199 views

How to use REST API over CURL with authentication?

I am trying to use the WordPress Rest Api with authentication to get more data from the API. I have installed the Oauth plugin, rest-api plugin, and gotten API credentials from WP-CLI. I have ...
0
votes
1answer
34 views

Dynamic URL, not a physical page within the database

Knowing how WordPress essentially processes page requests (through index.php and .htaccess), I'm trying to figure out the best way to "ignore" a certain permalink structure, or rewrite it in such way ...
1
vote
1answer
103 views

Wordpress Rest API

I'm trying to call a post from a Wordpress install using WP REST API. I keep getting an error in return and I can't find out why. Do I need to authenticate? One website said I don't need to ...
0
votes
0answers
42 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
39 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
23 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
162 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
25 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
32 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 ...
-2
votes
1answer
33 views

Edit Category - WooCommerce REST API

I was wondering if its possible to edit/rename a product category in WooCommerce via its REST API? Thanks.
0
votes
1answer
42 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
21 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
249 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
21 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
18 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
48 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
13 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
55 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
56 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
43 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
18 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
418 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
56 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
207 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
41 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
218 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
20 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
247 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 ...
0
votes
0answers
93 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: ...