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

8
votes
2answers
2k views

How to store username and password to API in wordpress option DB?

I'm currently developing a plugin and the chances are that I will more than likely release it on the public plugin repository so others can use it. The plugin will be using an API and to use this API ...
2
votes
1answer
723 views

Custom routing for plugins

I am making a plugin that needs a page that can be accessed from the outside, pretty much like an API, and have the url like so, http://xxxxx/custom_method?parameter=xxxxx&something=xxxx is ...
10
votes
2answers
238 views

Which of my blog and personal data is being transfered when Wordpress automatically checks for updates?

I'm generally concerned about privacy and I've heard that with each contact to the Wordpress API for update checks and similar a lot of my blogs data is being transfered. To get a better impression, ...
1
vote
3answers
492 views

Possible to use wordpress as publishing platform but programmatically inject content?

I have user generated content that is created in a mobile app that is written to a SQL Database. I'd like to create a new site that allows this content to be viewed on a per user basis. So if I go ...
5
votes
3answers
2k views

WP function/filter for modifying http headers?

Is there a dedicated WP function, action or filter to use when adding/modifying the HTTP headers? For now I just hook a PHP header() call into the WP 'init' hook like this: add_action('init', ...
5
votes
1answer
3k views

[Plugin WPML] : How to create a translation of a post using the WPML API?

I'm trying to figure out how to create a translation for a post using the internal WPML API (inc/wpml-api.php) I simply want to create a translation for post ID xx, set some content and publish it. ...
1
vote
2answers
715 views

How to get title tag of an external page with http api?

What is the best method to retrieve the title tag of an external page using the http api? The snippet below will get the body but I can't find the right documentation about how to just get the tag. ...
0
votes
2answers
254 views

Use ColdFusion to pull in WP.com posts?

Is it possible to pull in Wordpress.com posts into an external site, in this instance, ColdFusion? Is there a REST API for it? If not, is there another solution to pull in content? Thanks!
11
votes
2answers
2k views

How to pass variable to add_settings_section() callback?

I am attempting to automate, as much as possible, the Settings API function calls for each setting in a Plugin. Looping through the options array, and outputting add_settings_section() and ...
3
votes
2answers
870 views

Theme Options page with tabs

I have a theme that I'm developing from an HTML template I have. I'm also designing an options page along with a plethora of plugins built-into the theme itself. I've chosen a tabbed interface and I'm ...
1
vote
2answers
915 views

I Want to Get A Plugin Version Number Dynamically

Howdy, I recently cribbed W3TC to implement an "in-update" changelist display (very cool), in my plugin, but there's an awkward bit of code I'd prefer to avoid. If you look at the top of this file, ...
1
vote
2answers
325 views

Unable to find API Key for my blog

I have the blog http://kracekumar.wordpress.com, I need to find the API KEY of my blog,I clicked on Global Dashboard->My profile,it was mentioned in wordpress site that it will be found in top left ...
1
vote
1answer
388 views

Hook any php file into the wordpress api

Say I just have a dumb .php file sitting on my WP server and I wanted it to access WP info through the API, how would I go about doing that? For example if I wanted to call bloginfo('url'); As I ...
0
votes
1answer
81 views

modify buddpress adminbar only in admin pages

I have modified the buddpress admin bar by creating the following plugin which adds a simple text link to the bar: function bp_adminbar_currentsite_menu() { global $bp; ?> <li> <!-- ...
1
vote
1answer
316 views

Best Practice for re-using API Data in WordPress?

I'm using an API which is accessed with ID/Secret, etc. and use it in different widgets. In each widget however, I'm repeating the entire JSON process (i.e. file_get_contents, decode, etc.). I can't ...
0
votes
2answers
701 views

PHP class to add pages and fields in admin panel

I'm trying to build a little class to help build some simple input fields into a custom page in WordPress admin panel, here's what I've got: <?php class create_panel { public $default_settings = ...
1
vote
3answers
232 views

Does WordPress's HTTP API use any caching?

I'm working on a plugin to will retrieve data from a remote server and display it on the Dashboard. To do this, I'll be using the WordPress HTTP API but I'm not seeing any information on the HTTP API ...
1
vote
1answer
341 views

Error While Sending Comment

I'm trying to apply this tutorial to my blog. I'm using Woothemes' Bueno Theme . I'm adding this code to my theme's functions.php file : function ymc_add_meta_settings($comment_id) { ...
18
votes
8answers
14k views

How do you create a “virtual” page in WordPress

I'm trying to create a custom API endpoint in WordPress, and I need to redirect requests to a virtual page in the root of WordPress to an actual page that ships with my plug-in. So basically, all ...
1
vote
1answer
284 views

Advanced Integration - WordPress + YOURLS

I've been using a custom YOURLS system to create my own URL shortener for my blog network for a while now. Everything works just great with only a few exceptions (bugs already reported to the ...
0
votes
1answer
337 views

Creating tags via API

I'm working on using the WP API to insert posts via AJAX. What's the proper way of adding tags dynamically to a custom post type? These tags would not be predefined, but rather be created on demand ...
0
votes
5answers
7k views

How to get all posts (in chunks) via XML-RPC?

I would like to retrieve all posts of a blog via the XML-RPC API of Wordpress. There are the methods of blogger.getRecentPosts and metaWeblog.getRecentPosts which - given a sufficiently high value as ...
1
vote
4answers
10k views

How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?

I'm building a plugin and I want to add bits of javascript in the admin head but only for certain admin pages. I don't mean pages as in a WordPress page that you create yourself but rather existing ...
1
vote
2answers
714 views

Creating external apps Wordpress / How they work

I was wondering how does external app works for wordpress.com or wordpress.org. Directly connecting to the wordpress database seems a bad idea to me. Questions How can I create an app or get / ...
10
votes
3answers
4k views

Access WordPress API Outside of WordPress (command-line PHP)

I have a PHP script that I need to run as a cron job. However this script needs access to the WP API (get_pages(), get_post_meta() and get_permalink() specifically). I've followed the instructions ...
2
votes
2answers
3k views

wp_enqueue_style built in styles

I'm writing (rewriting) my plugin to use wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-dialog'); Which is great! But to use the dialog I need to load a jquery style sheet with ...
0
votes
2answers
309 views

Encoding Method for URLs?

Is there a method or API that WordPress uses to encode the URLs similar to how it generates part of the URL when using the title in the URL? I am writing a plugin that generates URLs and would like to ...
6
votes
1answer
2k views

Best way to programmatically remove a category/term from a post

I am working on a script to convert all posts in a given category to use a postmeta flag instead (testing of MySQL has shown me that on a site as large as mine this will lead to a meaningful decrease ...
0
votes
1answer
429 views

Socialite WP plugin, unable to obtain API keys from FB

I've installed the Socialite plugin for my wordpress blog, this allows your posts to be included in your facebook status as you publish them. I'm trying to configure the plugin, it gives you a URL to ...
15
votes
2answers
6k views

Difference Between Filter and Action Hooks?

I have been looking at the plugin API a bit more in depth recently and I was wondering what real differences there were between action and filter hooks. They both are events that receive data as a ...
0
votes
1answer
211 views

WordPress stats API key

Everytime WordPress stats updates, I need to provide the API key. Is there some way to automate this?