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
votes
0answers
15 views

Woocomerce API + Angularjs with Tokens [on hold]

I am trying to connect to woocommerce api & angularjs, I already created the token through the woocommerce settings, and use angular "http get". In the past i tried to send tokens through a header ...
0
votes
0answers
7 views

Options of accessing wordpress data from mobile app

There is an existing wordpress website and I would like to make native app(probably will do crossplatform native with React Native as I have experience with it) for it. So my question is: is there an ...
0
votes
0answers
14 views

I am trying to Import Woocomerce data through Rest API But i am Getting this Error [on hold]

Hello Everone... I am trying to Import Woocomerce data through Rest API But i am Getting this Error.. HttpRequest req = new HttpRequest(); Http http = new Http(); ...
-1
votes
0answers
11 views

I am trying to Import Woocomerce data through Rest API into my salesforce ,But i am Getting this Error [closed]

Hello Everone... I am trying to Import Woocomerce data through Rest API But i am Getting this Error.. Rest API URL : http://quoteshark.arcsqc.com/wc-api/v3/orders? ...
-1
votes
0answers
9 views

Woocommerce get response of third-party [on hold]

Our products are licensed with a ticket id provided by a third party tool. Upon order creation woocommerce has to connect to a third-party API using the order information (product, quantity, buyer ...
0
votes
0answers
21 views

Faster API with CDN [on hold]

I have a custom plugin built for me (not by me). There are basically 2 plugins, one on my website which holds a custom API built for my needs and another one which the client installs on his WordPress ...
0
votes
0answers
11 views

How exactly front-end page builder works? [closed]

I've created a back-end page builder using JavaScript which generates shortcode and then save it inside Text tab of page and it works fine, but I've seen some builder which work on front-end you can ...
0
votes
0answers
13 views

Authenticate with a Rails app?

There seems to be lots of posts where another app / website uses a WP website to authenticate against. I am looking for the opposite. I have a Rails app that uses Devise for authentication. I have a ...
1
vote
2answers
524 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
0answers
38 views

Custom route for WP-API gives “rest_no_route” value

I am following this tutorial to create custom end points to WP-API . I am always getting this error on hitting /wp-json/custom-plugin/v2/get-all-post-ids/ on postman to test : { ...
0
votes
1answer
32 views

Develope REST API using Wordpress for Android app [on hold]

I am an Android developer and new to WordPress. Requirement : is to write rest APIs to Login and get User details after login. All the plugins and wp-rest apis only expose core functionalities and ...
0
votes
0answers
23 views

Upload media Remote or Api

I couldn't find any accurate answers, therefore asking here. I have a website that runs multiple cron jobs in WordPress and generates posts from multiple resources with images and descriptions. I am ...
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
0answers
18 views

Flexslider+Vimeo APi in WP

I created a custom post type using flexslider. It supports video (vimeo/youtube) and images. It works but I need to add the vimeo api (froogaloop) because I need: The video to automatically stop ...
0
votes
0answers
22 views

Customizer API - trigger refresh manually

Is there a way to trigger refresh of live preview manually from js file? I have tried wp.customize.instance('some_setting_id').previewer.refresh() ...
0
votes
0answers
24 views

How to integrate Netller payment gatway on wordpress?

I am trying to integrate Netller payment gatway but it's throwing an error on execution. Can anybody help me to resolve this issue. What I have tried so far is: $username = 'myusername'; $password = ...
0
votes
1answer
2k views

wp_insert_post not working for custom post type?

For whatever reason wp_insert_post doesn't work for a custom post type. Here's the code snippet I'm using. $new_post = array( 'post_type' => 'rsp_synonym', 'post_title' => ...
0
votes
0answers
18 views

How can i create a signup form in my mobile app with WP REST API v2?

I'm builgind a native mobile app and i want users to sign up to my WordPress site using WP REST API. How can i implement this function securely into my app? I found a create user endpoint in the ...
0
votes
1answer
513 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
57 views

body_class REST field in WP-API

I'm building a site with WP-API (v2). I'm attempting to add a REST field according to documentation that includes anything from body_class. However, body_class is returning either one class (one ...
0
votes
0answers
70 views

Authentication for a mobile app connected via wp-rest api?

Building a cordova (HTML/JS) based mobile app (not-native) and I want to use wordpress only as the backend. The idea is that mobile app users will be making requests to the API and custom endpoints ...
0
votes
1answer
56 views

Why aren't tags and categories added in post request to WP Rest API

I'm using V2.0 and trying to create a post using the /posts endpoint. Here's the payload being sent with my request: var payload = { title : "some title", format : "link", tags: ...
0
votes
0answers
54 views

How can I display products from an external API on my Woocommerce (WordPress plugin) based site?

I have a created a new eCommerce store using WooCommerce WordPress plugin. Now, I want to display products from an external site using their API. I've got access and required authentication to their ...
0
votes
0answers
61 views

Create new product with woocommerce REST API with javascript (clientside)?

Is it possible to create new products in woocommerce using its API with javascript from clientside? I tried this for getting all products: endpoint: ...
-1
votes
1answer
67 views

Zoho subscription API to Wordpress [closed]

Please help me to integrate ZOHO subscription api to Wordpress without using any plugins. Project process would be: 1. Wordpress: The user can choose product and it's add on in the form options. I ...
1
vote
1answer
737 views

API for creating blogs on Multisite?

Is there some API or plugin that allows for creation of sites on a multisite install? Jetpack doesn't seem to allow it, and the xml rpc doesn't seem to support multisite. Is there something I can use ...
0
votes
0answers
198 views

Authenticating a user with the WP-API V2 in Postman

I'm using Postman to test my project and the wp-api. More specifically POST requests where a user must be authenticated to do something. Here's what I'm working with to create a user: ...
0
votes
0answers
23 views

Refresh the Customizers preview after editing fields

I'm using ACF fields on a few custom widgets. While using the Customizer to edit fields, they will save on change but the preview will not refresh. Calling wp.customize.previewer.refresh() will ...
0
votes
0answers
14 views

Choosing what Shortcodes should render

So I am working on a mobile app that pulls from a WordPress JSON API, I've coded our own end point and it's delivering content just fine. I need a way to be able to pick and choose what shortcodes ...
20
votes
4answers
16k views

Programmatically add a Navigation menu and menu items

Through API functions, I want to define a new Navigation menu, select it in the current theme, and then insert a few Pages as menu items. This is to be done for instance on a theme activation. ...
0
votes
1answer
35 views

how to get nonce using json api

I try to open this url in my browser or calling from my frontend application: http://78.47.177.214/blog/api/get_nonce/?controller=posts&method=create_post i keep getting the response ...
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.
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. ...
3
votes
1answer
290 views

Is it possible to enqueue the Youtube API script or does it have to be inline?

The code below is the main part of a function in my functions.php which returns a div and script which ultimately output a youtube API iframe to the template where the code had been called from. At ...
0
votes
1answer
13 views

Surrogate ID for posts, is there an alternative field in the posts table?

I am copying some content between another CMS and Wordpress. I need to keep track of the original Id because I might have to update the copied content in the future. The old CMS will still be used for ...
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
2answers
60 views

Where to put API Code?

I want to use some of the Wordpress API built in functions such as wp_remote_request(). I have tried using this in a php file in my root Wordpress installation but I am just getting an error: ...
1
vote
1answer
33 views

Using API to generate short link

I want to use a shortcode that generates a short URL from API of Premium URL Shortener script. I added code from API to my template functions: // Main Function function shorten_url($url){ ...
0
votes
0answers
117 views

Access Control Allow Origin problem with CORS

I'm at wit's end. We're using CORS to go back and forth between a .NET environment and a WP/BuddyPress environment. I've added the Access-Control rule to the header in index.php, with no wildcard. ...
0
votes
0answers
27 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 ...
1
vote
0answers
83 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 ...
1
vote
1answer
46 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
19 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
48 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 ...
0
votes
1answer
45 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 ...
1
vote
0answers
22 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
127 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
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
1answer
52 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
52 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 ...