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

-2
votes
0answers
15 views

Testing dev e-commerce site with live merchant account

I'm currently using WordPress with storefront/woocommerce with Authroize.net for payments to develop an e-commerce site. The old site is still live but I'm wondering if I can test the new shopping ...
0
votes
0answers
10 views

WordPress, modular content, and syndication

I am trying to sketch out a possible Wordpress based solution by which content is authored in a modular way, with an arbitrary number of different modular blocks of content, (similar to Sir Trevor ...
-1
votes
0answers
23 views

How to create activation key for premium theme?

I created a new theme. before I sell to the others, I need to add activation key to protecting my theme. how to create activation key for WordPress theme ? thank you
0
votes
1answer
10 views

How to create post comment from different domain

Using an API plugin i have been able to build a site that combines content from multiple Wordpress websites. I want to give users the ability to quickly leave a comment for one of these posts without ...
-4
votes
0answers
22 views

Woocommerce API

I am trying to take control of my e-commerce website using the Woocommerce API and PHP, I'm wondering if I can add products, edit price and stuff using only the API and PHP if i can't , with wich ...
0
votes
2answers
43 views

Order Posts By Youtube Views

I have a wordpress website where I post song lyrics. I have written a wp query to list specific posts and order them by post views. However, I would like to order them by youtube views instead. I ...
0
votes
1answer
60 views

WP Rest API - How to get featured image

I'm very new to this API, in fact I've only spent couple hours on it so far. I've done my research but cannot find anything about it... The issue is, I can't seem to get the featured image of a post. ...
0
votes
1answer
31 views

How to avoid loading wp-load.php from external php scripts?

i use slim with wordpress. This worked flawlessly so far. Well almost. Once I changed to multisite I had to start fake creating $_SERVER variables faking a domain name. But it worked finally. What I ...
2
votes
1answer
30 views

Get all tags not just first 10 with wp api 2.0

if I do /wp-json/wp/v2/tags I only can get first 10, and seems the adding per_page=0 no longer work on it for getting actually all tags. Anyone knows how to actually get all the tags with wp-api 2.0?
0
votes
0answers
23 views

Wordpress Authentication without Wordpress functionality

The requirement is to authenticate against the WordPress users tables to get past the paywall but not offer any WordPress functionality. The problem to resolve is that since the user is ...
1
vote
1answer
40 views

Change Page's <title> Tag Using functions.php File

In my child theme's functions.php file, I'm trying to change a page's title tag: function custom_title() { return "Page Title"; } add_filter( 'wp_head', 'custom_title', 9999 ); The code above ...
0
votes
0answers
34 views

wp_remote_request to execute “DELETE” method in Zoho subscription

Hi I need to execute this in wordpress website DELETE https://subscriptions.zoho.com/api/v1/customers/{customer_id} but I can't find WP_remote api function that would directly trigger DELETE. I find ...
0
votes
1answer
30 views

How do I query my Wordpress posts on another HTML page using the Wordpress Restful API?

I have a fully functional Wordpress site and I want the to create a new separate website that displays the posts from the wordpress site using the Wordpress Rest API. I understand that typing http://...
0
votes
1answer
44 views

Getting a Page via its post-name using WP REST API v2 and Postman

Using Postman as a Chrome extension I have had success accessing Pages(not posts as I don't use them) from my WP website. Having trouble pulling data using the post-name url that I set way back in ...
0
votes
0answers
41 views

Fetch api json data pagination

I'm developing a plugin that needs to fetch all font families list from Adobe Typekit API. I'm using wp_remote_get to accomplish this. $font_list = array(); $fonts_lib = wp_remote_get( 'https://...
0
votes
1answer
9 views

REST or Alternative Method for New User && New Site && Assign User to New Site as Admin?

Looking for a method to add a new user to a site, assign them to that site as an admin. API does not seem to support this. Any functions I should be looking at as alternatives?
0
votes
0answers
35 views

REST API And Error Codes - No Message

I'm writing some code which inserts a new post and some postmeta using AngularJs and the REST API. I'm filtering the rest_pre_insert{postype} hook which is allowing me to throw an error when the ...
0
votes
0answers
23 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 ...
1
vote
0answers
28 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 ...
0
votes
0answers
326 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
84 views

Develope REST API using Wordpress for Android app [closed]

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
35 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
0answers
35 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
59 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() http://shibashake.com/wordpress-theme/wordpress-...
0
votes
0answers
31 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
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
0answers
203 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 ...
-1
votes
1answer
315 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: https://localhost/wpShop/wc-api/v2/products?...
0
votes
1answer
98 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
1answer
70 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
1answer
604 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: {{url}}/...
-1
votes
1answer
106 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 ...
0
votes
0answers
49 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
19 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 ...
0
votes
1answer
125 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 {"...
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 ...
0
votes
2answers
105 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
57 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
141 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
41 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
133 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
80 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
49 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
138 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 ...
2
votes
1answer
47 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
55 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
292 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
131 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
1answer
51 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 ...
2
votes
0answers
14 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 ...