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

Send Data to Wordpress from kiosk

I need to get a data from kiosk (think specific ATM machine) to wordpress database. Kiosk service providers told me to give them Gateway URL and Request format to send data. Im stuck on this, I dont ...
-3
votes
0answers
26 views

Connecting the blog to application

We want give our users facility to connect or validate their existing wordpress which API should we use? Do we need to give blog embedding or authentication API by wordpress? if yes please share the ...
0
votes
1answer
12 views

Extra fields on categories that is available via the WP-API?

I want my posts to belong to a taxonomy with a couple of extra fields such as category_icon, category_quick_facts etc. I want this taxonomy (with all of its fields) to be available via the WP-API. How ...
0
votes
0answers
9 views

How to set specific values for a taxonomy via IXR_Client?

I am trying to create posts using IXR_Client. I am already able to do that, but now I am facing a problem were I don't know how to create sub-categories for the posts I am creating. The way I am ...
1
vote
0answers
11 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
votes
1answer
46 views

Need All the posts with id, title and date [closed]

I need all the post ids with the corresponding title and post date. Currently getting only ids $posts_array = get_posts( 'posts_per_page=999999999999&fields=ids' ); need [{ "id" : 9, ...
0
votes
1answer
40 views

Using actions, hooks and filters in a non-WordPress page

I have a php script that sits outside of wordpress, but loads WP core with wp-load.php. Here is my basic page: <?php define('WP_USE_THEMES', false); global $wp, $wp_query, $wp_the_query, ...
0
votes
2answers
60 views

How can I call specific function if requested URL is not found?

My website is fully API based and builds pages/posts from API data. I was thinking to create something like PHP magic function __call to call specific function when requested URL would return 404, but ...
2
votes
0answers
137 views

How to get featured post title & image using JSON API?

Is there any possibility to get featured post title and image using the JSON API. I tried using this: example.com/?json=the_post_thumbnails&count=3 But instead of recent posts, I get featured ...
0
votes
0answers
152 views

Plugin that uses AngularJS tutorial

I plan to make a plugin which should act as Backend for angularjs. And I search for a good tutorial for the implementation steps, but till now I did not found any good. Making some researches I found ...
0
votes
0answers
18 views

Should I use transients for these API call results?

I am consuming an API that gives me a list of people and their profiles. My initial idea was working perfectly fine when it's just the list of people because I was just saving the ids and names using ...
0
votes
0answers
152 views

Fetching instagram api not working on wordpress

<?php $json = file_get_contents('https://api.instagram.com/v1/users/userid/media/recent/?access_token=accesstoken'); $a_json = json_decode($json, true); foreach( $a_json['data'] as $key => ...
0
votes
0answers
44 views

What is the proper url for facebook api to work with wordpress?

This may seem silly but after google searching it I was unable to find a solution. I'm using the newest facebook PHP SDK and wordpress. I've tested my code in plain php and it works like a charm. ...
1
vote
1answer
178 views

Custom Connect to Facebook, problem logging in/logging out

I am working on a custom function for login in my users via facebook. I started by reading this nice tutorial on how to login in via facebook: ...
1
vote
0answers
41 views

I am trying to use the Theme Customization API but I keep getting an error

This is the error: Call to a member function check_capabilities() on a non-object in /home/content/54/11786754/html/wp-includes/class-wp-customize-control.php on line 161 and this is my code in ...
0
votes
0answers
25 views

Developing a plugin, ran it through P3 Profiler, shows up slow, but I don't know why

I am having an issue with my plugin I'm developing. After using the GoDaddy P3 Plugin profiler, it shows that is taking up a large amount of runtime, but the plugin itself is very minimal. It just ...
0
votes
0answers
44 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 ...
0
votes
1answer
215 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
88 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
58 views

How to schedule future and past posts with metaWeblog.newPost

I am attempting to remotely post articles to a wordpress page and no matter what I attempt to do I cannot publish in the future and the past. I have commented out some past attempts (some found on ...
0
votes
0answers
56 views

How would I remove an inline googleAPI font script in the the parent theme header.php?

Is there any way to remove the function call to the googlefontapi font in the parent header.php file besides copying the parent header.php file to the child theme and then overriding it and delete the ...
0
votes
0answers
56 views

Get full page HTML for a non-public Wordpress page

How can I write a function that will return the full rendered HTML of a non-public URL on my Wordpress site—a URL that you must be logged in to see, such as a draft? Not just the post content, but the ...
1
vote
0answers
26 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", ...
0
votes
0answers
98 views

Vimeo Froogaloop API, working in Fiddle but not WP

I'm trying to harness Vimeo's Froogaloop API to pause video embeds whenever a user clicks a certain element. I have it working perfectly in my Fiddle but it wont work in my Wordpress environment. I ...
2
votes
2answers
150 views

Use an attachment in multiple posts

I have an attachment in a post and I want to attach it to another post without detaching it from the first post, using the WP API.
0
votes
0answers
76 views

get_avatar() returns false, use with JSON-API

I have JSON-API installed and I'm using a custom controller to get all users with the role 'editor'. I also have WP-User-Avatar installed so the editors can upload their own images instead of using ...
2
votes
2answers
59 views

How to check if WordPress is updating plugins?

I have a simple dependency check at the start of some plugins - which check if another plugin is installed and active (using class_exists()). This works well in the normal WordPress flow - as the ...
0
votes
0answers
27 views

Does Wordpress provide themes_api function?

http://wp.tutsplus.com/tutorials/plugins/communicating-with-the-wordpress-org-plugin-api/ From the link above, we can see the Wordpress.org provide a function that can access the Wordpress.org ...
3
votes
2answers
695 views

Trying to get custom post meta through Jetpack JSON API

I'm using the Jetpack for Wordpress to produce a JSON API for my Events custom post type, which works fine: https://public-api.wordpress.com/rest/v1/sites/MYSITE/posts/?type=events&number=100 ...
1
vote
1answer
28 views

Sanitize Disqus API results?

Can I trust the results from the Disqus API, not to include evil scripts? Can I find information somewhere. Would you sanitize the JSON data, that is returned? Official answers?
0
votes
0answers
277 views

Updating Twitter status with media using wp_remote_post

I need to be able to update a twitter status using only functions allowed by Wordpress VIP. I am using this library: https://github.com/Automattic/wp-codebird Which of course is broken, any of the ...
0
votes
2answers
345 views

Get Latest Plugin Version from WP API

I'm writing a plugin that checks and collects data from WP - including info about installed plugins. I can get most of the data I require using get_plugins() - however, I'd also like to check for the ...
0
votes
0answers
354 views

add_rewrite_rule not working

I'm trying to do some url rewriting. I've picked this example right off the wordpress wiki here: add_rewrite_rule('^nutrition/([^/]*)/([^/]*)/?','index.php?foo=bar','top'); The wiki page says: ...
0
votes
1answer
102 views

How to use HubSpot Forms API in Wordpress pages?

How to use HubSpot Forms API in Wordpress pages? I have to pass dynamic values to the Hubspot Form. Thanks in advance
0
votes
0answers
83 views

wp_enqueue & youtube API on different templates

I'm trying to use the youtube API on two of my template pages. Obviously I want to enqueue it correctly. When I put this code in my footer.php page, I got it to work: <script ...
-2
votes
1answer
448 views

How to use Wordpress to embed a SoundCloud download link?

I'm trying to embed a download link for previews in a music site I'm building for a couple of friends. They are currently filling up the system with content and I'm using a SoundCloud iframe HTML5 ...
0
votes
0answers
79 views

How does register_setting and settings_fields work?

In the WordPress settings API, I understand that register_setting() must be called for add_settings_field() to be saved and updated according to the codex. Since almost every WordPress function has ...
0
votes
0answers
109 views

Call wp_create_user function from external?

I want to create New Users from external. I've found this is function in wordpress: wp_create_user( $username, $password, $email ); So how can i run this function from external call please? I ...
0
votes
0answers
13 views

Module with the GET/POST value acceptance?

In Wordpress, how to make a API like Module, which can accept the data being passed via Get or POST arguments. I mean, the Wordpress should be able to accept the URL calls from external, and then ...
0
votes
2answers
133 views

Plugin architecture to pull from API & create dynamic content on WP site?

I am creating a custom plugin that connects to an external API and pulls in data about a company's locations. Currently, the plugin has a shortcode that I put on a "Locations" WordPress page that ...
0
votes
0answers
38 views

Need to get transaction id of the user logged in

I need to get the transaction id of the logged in the user. I am Using wishlist Membership plugin with Clickbank They have an API. But I am not able to get the txnid of the logged in user using I ...
0
votes
1answer
1k views

How to access data in wordpress database externally using php

I want to share data in specific wordpress database tables with an iOS app. The client wants data entry via wordpress form plugins which create their own tables in the wp database. The plugins I've ...
2
votes
1answer
235 views

API for Post Stats for Self-Hosted Wordpress using JetPack

EDITED for Clarification WordPress.com as well as JetPack provides stats (like no of views, referrer, etc) for various posts and blog as described here :Wordpress Stats Is there an API so that I ...
1
vote
0answers
59 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 ...
0
votes
1answer
176 views

Custom post metadata not appearing in public API

I'm using wordpress.com's public REST API to retrieve custom posts from a Wordpress installation. The JSON that's being returned is missing all the custom fields, however. The fields are definitely ...
0
votes
0answers
76 views

Run A Pre-Built Core PHP Application Under A WordPress Page or Post Route

I have a complete application built in Core PHP and a WordPress site which has stable traffic every month, I need to get this new business application up and running under mysite.com/support. The ...
7
votes
1answer
463 views

How to use “Add link” pop up for a WordPress widget

In the WYSIWYG editor of WordPress you get pop up if you want to add a link for a text. Is there a possibility to access this functionality? Because I want to use this pop up for a WordPress widget ...
1
vote
0answers
243 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 ...
0
votes
2answers
90 views

Get value of a key from a Plugin Serialized array

I want to get details about a plugin hosted on WordPress.org Repository by making a call to API at http://api.wordpress.org/plugins/info/1.0/ I have pasted below the code I used and the output. I am ...
0
votes
0answers
9 views

Simpler API to build quick edit for custom posts type

The actual API for building quick edits it's not very logic, and seems more an hack than something built for the purpose. Is there something simpler to use, maybe a wrap around the API provided by a ...