Wordpress Design Articles

WordPress APIs

The WordPress features have many different APIs for his users and that is very help full interact with WordPress. The APIs as gateways that let you add in your code or retrieve external content within WordPress without the disturbing the never hack the code maxim: several APIs insert the references to non-core code that will be insert to the wp-content directory or folder by registering its entry points with WordPress CMS. Every API is documented in the Codex file along with functions used in the API. Each API is a set of predefined functions that available for use in plugins  and themes. Below is a list of the most common WordPress APIs that is use:
➤ Plugin API — This API is Use for custom plugin development. In the Codex features an extensive Plugin API documentation page. Hooks, Actions, and Filters introduction in this file, these are the basic ways to interact and communicate with WordPress from a custom-built plugin API. This Plugin API page links to the Function Reference pages it is available API functions, and this is located in /wp-includes/plugins.php. http://www.codex.wordpress.org/Plugin_API here plugin API is available.
➤ Widgets API — This API is used to create and or update or maintain the widgets in your plugin. Area of widget will automatically appear in wordpress admin panel under the Appearance then Widgets SubPanel and can be used on any
defined sidebar on your theme for example calendar, featured posts. This is the address http://codex.wordpress.org/Widgets_API where you can find the Widgets API.
➤ Shortcode API — This API is use for adding shortcodes in your plugin, pages or posts. The shortcode is a macro code added to a post. This allows a plugin to grab that shortcode and it is execute specific commands and instruction and display elements in place of it in your post or page. The parameters also accept in the shortcodes. Here is an example of core WordPress shortcode is, this shortcode is automatically displays all images that you uploaded in the media and uploaded to that post in a gallery style. After editing a post, the shortcode you will see, when you see the front end site of this post of your website it displays the actual gallery of images which you have added in the images gallery. This is the link http://codex.wordpress.org/Shortcode_API where you can see the short code of wordpress.
➤ HTTP API — This API is use for sending the HTTP request from WordPress. HTTP API is a standardized method for use the content of an external URL. The provided URL and tests a series of PHP methods take by this API and for sending the request. It Depend on the hosting environment, The WordPress uses the first method it thinks to be configured correctly to make the HTTP request. Current HTTP API is a PHP methods it is tested are Streams, cURL, and FSockopen. Methods are also checked properly in that order. So you can also use the Core Control plugin the address of http://www.wordpress.org/extend/plugins/Core-control/ to choose which method or function is used for all HTTP requests. When use the HTTP API, then you could easily and very simply interact with the Google Maps API for dynamically generate the maps and the plots. HTTP API is very to interact with the Twitter API, permit you to post/read tweets directly from WordPress, and give you every twit this API is available on the following address http://codex.wordpress.org/HTTP_API.
➤ Settings API — This API is use for manage or creating a settings page. Settings API is used for creating and managing the custom options for your themes  and plugin. The Settings API main advantage is security. This API has all of the setting data saved by the user. It means no more worrying about the data validation, and cross-site scripting (XSS) attacks when you saving the setting data and this is much easier and simple  than the old method of the validation of data, So before you had to use each time when you needed to save settings in a plugin and this Settings API is available at the following address http://www.codex.wordpress.org/Settings_API.
➤ Options API — This API is used for storing option data in the database of WordPress. This Options API is provides an easy and very simple way to create, update, retrieve, and delete option values of data and this is available at the following address http://codex.wordpress.org/Options_API here is option API available.
➤ Dashboard Widgets API — This API is use for creating the area of admin dashboard widgets. These widgets added from the API automatically it contain all jQuery features and functions that the core admin dashboard widgets have in which including the drag/drop option minimize and hiding options via screen and this is available at the following address http://codex.wordpress.org/Dashboard_Widgets_API.
➤ Rewrite API — This API is use for creating the custom rewrite rules. Rewrite API allows or permits you to create custom rewrite rules just as you want in your .htaccess file as well as you can also generate the custom permalink structure of tags that is, %postname%, the static endpoints is, /my-page/, and you can also add additional feed links in the links. Rewrite API functions are located in /wp-includes/rewrite.php at the address of http://www.codex.wordpress.org/Rewrite_API. Always remember that all APIs of WordPress can be used in the custom plugin and theme development. This is the primary method or function of extending the WordPress with additional features performance and functionality. Us the preceding APIs creates an easy and standardized way of interacting or communicate with WordPress CMS. The wordpress API availane at and here you can see all the APIs the Codex page at http://www.codex.wordpress.org/WordPress_API’s here all APIs of wordpress available.