Function Reference in WordPress
The WordPress functions are mentioned in the Codex with an individual Function Reference page and it for each WordPress API function available. Reference pages will explain in detail exactly how a WordPress function works and perform it functionality, as shown in Figure below. For a quick reference on WordPress functions bookmark this page and their capabilities. Official Function Reference are available at http://www.codex.wordpress.org/Function_Reference and this is link for official address of functin refrence.
So think that the Function Reference as an online and expanded version of a function’s inline documentation of WordPress. In the reference has a description explaining of the function that how the function works and how it is used and how managed it on code. Function individual parameters are listed along with the data types and a description of each function.
In the Function reference the most and useful section of is the examples toward the bottom. In the examples it is very easy to see exactly how to use the function in the file.
Below The get_userdata example is
<?php $user_info = get_userdata(2);
echo ‘Username: ‘ . $user_info->user_login . “\n”;
echo ‘User level: ‘ . $user_info->user_level . “\n”;
echo ‘User ID: ‘ . $user_info->ID . “\n”;
In this example shows how to load specific user data and information for user ID 2. Example output is as follows as mentioned:
User Level: 12
User ID: 2
It is a simple example and also with the additional reference information, so you can help you easily learn a new function and how to use it properly in your code and use as you want.
The lists of related function are the final Function Reference topic. This topic can help you identify the similar function that may accomplish that task you are working on these function.
Let’s suppose, the wp_update_post() function lists, wp_insert_post() and wp_delete_post() as related functions.
In WordPress the majority of WordPress API functions are well documented, remember all functions not have a Function Reference page in the Codex.
Involving and Contributing to the Codex is a great way to get involved in WordPress CMS.
It is not need to be an advanced developer of WordPress to contribute in the code examples,descriptions, and additional information about various features of wordpress and functions.