The api tag has no wiki summary.
8
votes
1answer
248 views
Using the Rewrite API to Construct a RESTful URL
I'm trying to generate rewrite rules for a RESTful API. I just want to see if there is a better way to make this work than having to write out every possible rewrite combination.
Ok so I have 4 ...
12
votes
7answers
7k 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 ...
8
votes
1answer
3k 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 ...
10
votes
3answers
312 views
Wordpress API Menu/Submenu Order
I'm developing a child-theme using Wordpress 3.4.2 and the development version of the Options Framework by David Price. This is my first theme and I'm relatively new to this, so I've had a look into ...
4
votes
2answers
853 views
How to use WP_Error $data argument?
The Call
$error = new WP_Error( $code, $message, $data );
The Output
Say I added three messages (msg A, msg B, msg C) to the code my_code and with the last message I added "Data" as $data, which ...
-1
votes
1answer
254 views
Integrating custom API for post content into Admin interface & Public Website [closed]
EDITED question to be more specific and added bounty in hopes someone has a solid coded solution:
So, here is an interesting task I have been trying to find a solution for. I have added a bounty ...
3
votes
3answers
2k views
What is the best way to get directory path for wp-config.php?
I am developer of the plugin mapsmarker.com which also offers several APIs which can be accessed directly (eg www.mapsmarker.com/wp-content/plugins/leaflet-maps-marker/leaflet-geojson.php?marker=1)
...
0
votes
0answers
89 views
Facebook. Fetch user photos and post them to blog on the user side [closed]
So I'm looking for some plugin or solution to implement such function. Fetch facebook photos (using json I guess) and post them to the blog.
8
votes
3answers
4k views
Programmatically add a Navigation menu and menu items
Through API functions, I want to define a new Navigation menu, select it in the current theme, and then insert a few Pages as menu items. This is to be done for instance on a theme activation.
...
3
votes
1answer
991 views
Create API for single sign-on with 3rd party site
My site needs to integrate with a 3rd party software, which will live on its own sub-domain, hosted by the software company. I need to provide the 3rd party developers with an endpoint that they can ...
8
votes
2answers
202 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, ...
0
votes
4answers
5k 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 ...
5
votes
2answers
253 views
WordPress.org API - Get plugin authors favorite plugins
There have been some recent additions to the WordPress.org plugin repository. Most notably the changes to the plugin page and the author profile page which now shows an authors favorite plugins.
I ...
3
votes
2answers
1k 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', ...
2
votes
3answers
142 views
WP.org API: Accessing plugin downloads “Today” value?
I'm developing a plugin to display stats for downloads and various other information that developers might want to display on their sites about what they have developed.
I've found documentation on ...
2
votes
3answers
758 views
How do I create a widget that only allows a single instance?
How do I create a widget that only allows a single instance of a widget to be added through the Wordpress interface?
The default behaviour of widgets allows multiple instances to be added.
I am ...
2
votes
3answers
843 views
An Unexpected HTTP Error occurred during the API request
I just did a clean install of Wordpress. But I have a problem when I install or use the WordPress API. So send me a sign
An Unexpected HTTP Error occurred during the API request.
The strange ...
1
vote
3answers
4k 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 ...