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

0
votes
1answer
317 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
6k 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
7k 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
636 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
2answers
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
258 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
421 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 ...
11
votes
2answers
4k 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
210 views

WordPress stats API key

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