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
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
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 ...
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 ...
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 ...
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 ...
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: ...
1
vote
0answers
220 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 ...
1
vote
0answers
28 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 ...
1
vote
0answers
107 views

Implementing the wp json-rest api

I have a client that wants to use the wp json-rest api to allow third-party sites to push custom posts (in this case property listings) up to our site. I've been looking at using the wp json-rest ...
1
vote
0answers
109 views

wp_publish_post to saved draft, permalinks broken

I'm creating a system, where some custom post drafts are being prepared, and after certain actions taken by moderators it is being automatically published. So, first I create post draft like that: ...
1
vote
0answers
143 views

Call wordpress function outside wordpress

I am writing an script to get wordpress posts and user data outside wordpress files and folder, this script run by side of wordpress installation but will fetch data from wordpress as explained below. ...
1
vote
0answers
379 views

Submit comment via JSON from Android device

I have a Wordpress blog together with a little Android App, developed by myself. Now I want to expand my app a little. My goal is to implement a kind of live ticker. The function is as follows: On my ...
1
vote
0answers
103 views

Replacing the content of an image attachment using API

I have an existing image attachment, with a given ID. Is there a way, using API (specifically, Python Wordpress XML-RPC), to upload another image instead of the existing one, without creating a new ...
1
vote
0answers
74 views

Manage a resource via REST API

I'm writing a plugin to manage the display of some resources accessed via a REST API. I've set up some rewrite rules to get the correct parameters to send via the API, and some shortcodes that ...
1
vote
0answers
50 views

Wordpress does not show products when the value of post_parent is not 0

I use wp-e-commerce. I created a custom post type called "event". I would like to create new "event" as a parent and hook products under it. When I "hook" a product under post parent "event", ...
1
vote
0answers
115 views

Add Embed.ly API objects to post_meta on update

I created a new post type fr_news for adding news to a site. The user inputs a URL, and what I want it to do is use the Embed.ly API to display the news. I've got the API side figured out. Here's the ...
1
vote
0answers
529 views

WP List Table in custom post type

I want to use WP_List_Table class on a custom post type to create a whole new admin panel (the original one will exist, but I want to have several others with specific filters and criteria set upon ...
1
vote
0answers
138 views

permalinks with get variables

I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows add_filter( 'query_vars','driver_vars' ); function driver_vars( $vars ) { ...
0
votes
0answers
9 views

Buddypress login oauth

I am working on Buddypress from a lot of time but i have a problem now. I want my social network to be like other professional social networks like facebook and google+. I want to add my social login. ...
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
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 ...
0
votes
0answers
39 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
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
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
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
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
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
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
65 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: ...
0
votes
0answers
199 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 ...
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
28 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
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
0answers
26 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
0answers
28 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
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
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 ...
0
votes
0answers
16 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
118 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
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
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
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
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
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
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
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 ...