Index: tbex.xml
===================================================================
--- tbex.xml (revision 23434)
+++ tbex.xml (working copy)
@@ -579,11 +579,6 @@
get_all_category_ids()
get_all_category_ids
- -
- Returns an array containing the parents of the given object.
- get_ancestors( 208, 'category' );
- get_ancestors
-
-
Retrieve the ID of a category from its name.
get_cat_ID( $cat_name )
@@ -613,25 +608,6 @@
get_categories
- -
- Returns an array of category objects matching the query parameters. Arguments are pretty much the same as wp_list_categories and can be passed as either array or in query syntax.
-
- $args = array(
- 'type' => 'post',
- 'child_of' => 0,
- 'parent' => '',
- 'orderby' => 'name',
- 'order' => 'ASC',
- 'hide_empty' => 1,
- 'hierarchical' => 1,
- 'exclude' => '',
- 'include' => '',
- 'number' => '',
- 'taxonomy' => 'category',
- 'pad_counts' => false );
-
- get_categories
-
-
Retrieves category data given a category ID or category object. If you pass the $category parameter an object, which is assumed to be the category row object retrieved the database. It will cache the category data. If you pass $category an integer of the category ID, then that category will be retrieved from the database, if it isn't already cached, and pass it back. If you look at get_term(), then both types will be passed through several filters and finally sanitized based on the $filter parameter value. The category will converted to maintain backwards compatibility. Note: use get_term() to get Link Categories based on their ID's. get_category only returns Post Categories.
get_category( $category, $output, $filter )
@@ -935,15 +911,10 @@
add_cap
-
- Adds a new Role to WordPress.
+ Adds a new Role to Wordpress.
add_role
- -
- Adds a new Role to WordPress.
-
- add_role
-
-
Whether author of supplied post has capability or role.
@@ -978,20 +949,6 @@
get_super_admins
- -
- Retrieve a list of super admins. Uses $super_admins Super admins global variable, if set.
-
- $super_admins = get_super_admins();
- echo 'List of super-admin users:
- ';
- foreach ($super_admins as $admin) {
- echo '- ' . $admin . '
';
- }
- echo '
-
';
-
- get_super_admins
-
-
Determine if user is a network (super) admin.
@@ -1082,16 +1039,6 @@
get_userdata
- -
- Returns a WP_User object with the information pertaining to the user whose ID is passed to it. Properties map directly to wp_users and wp_usermeta tables in the database (see Database Description). If the user does not exist, the function returns false. An alias of get_user_by('id').
-
- $user_info = get_userdata(1);
- echo 'Username: ' . $user_info->user_login . "\n";
- echo 'User level: ' . $user_info->user_level . "\n";
- echo 'User ID: ' . $user_info->ID . "\n";
-
- get_userdata
-
-
Returns the post count for the user whose ID is passed to it. Properties map directly to the wp_posts table in the database (see Database Description).
echo 'Posts made: ' . get_usernumposts(1);
@@ -1107,11 +1054,6 @@
set_current_user( $id, $name )
set_current_user
- -
- This function can be replaced via plugins. If plugins do not redefine these functions, then this will be used instead. Changes the current user by ID or name. Set $id to null and specify a name if you do not know a user's ID.
- set_current_user( $id, $name )
- set_current_user
-
-
Check that the user login name and password is correct.
user_pass_ok( $user_login, $user_pass )
@@ -2722,21 +2664,6 @@
$wp_admin_bar->get_nodes();
get_nodes
- -
- This function returns an array of all the Toolbar items on the current page. Toolbar items are also called "nodes". The Toolbar replaces the Admin Bar since WordPress Version 3.3. note: This function is a method of the WP_Admin_Bar class and $wp_admin_bar global object, which may not exist except during the 'admin_bar_menu' or 'wp_before_admin_bar_render' hooks.
- $wp_admin_bar->get_nodes();
- get_nodes
-
- -
- This function returns an array of all the Toolbar items on the current page. Toolbar items are also called "nodes". The Toolbar replaces the Admin Bar since WordPress Version 3.3. note: This function is a method of the WP_Admin_Bar class and $wp_admin_bar global object, which may not exist except during the 'admin_bar_menu' or 'wp_before_admin_bar_render' hooks.
- $wp_admin_bar->get_nodes();
- get_nodes
-
- -
- This function returns an array of all the Toolbar items on the current page. Toolbar items are also called "nodes". The Toolbar replaces the Admin Bar since WordPress Version 3.3. note: This function is a method of the WP_Admin_Bar class and $wp_admin_bar global object, which may not exist except during the 'admin_bar_menu' or 'wp_before_admin_bar_render' hooks.
- $wp_admin_bar->get_nodes();
- get_nodes
-
-
Compares two given values (for example, a saved option vs. one chosen in a form) and, if the values are the same, adds the checked attribute to the current radio button or checkbox. This is essentially the same as comparing values with if(), but results in more concise code.
@@ -2752,21 +2679,6 @@
selected
- -
- For use in dropdown form fields. Compares two given values (for example, a saved option vs. one chosen in a form) and, if the values are the same, adds the selected attribute to the current option tag.
-
- selected
-
- -
- For use in dropdown form fields. Compares two given values (for example, a saved option vs. one chosen in a form) and, if the values are the same, adds the selected attribute to the current option tag.
-
- selected
-
- -
- For use in dropdown form fields. Compares two given values (for example, a saved option vs. one chosen in a form) and, if the values are the same, adds the selected attribute to the current option tag.
-
- selected
-
-
Tests if the current request was referred from an admin page, or (given $action parameter) if the current request carries a valid nonce. Used to avoid security exploits.
check_admin_referer( $action, $query_arg );
@@ -2842,11 +2754,6 @@
xmlrpc_removepostdata( $content )
xmlrpc_removepostdata
- -
- Check that the user login name and password is correct.
- user_pass_ok( $user_login, $user_pass )
- user_pass_ok
-
-
Retrieves the translated string from the translate().
$translated_text = __( $text, $domain );
@@ -2975,7 +2882,7 @@
add_query_arg
-
- The admin_url template tag retrieves the url to the admin area for the current site with the appropriate protocol, 'https' if is_ssl() and 'http' otherwise. If scheme is 'http' or 'https', is_ssl() is overridden. In case of WordPress Network setup, use network_admin_url() instead.
+ The admin_url template tag retrieves the url to the admin area for the current site with the appropriate protocol, 'https' if is_ssl() and 'http' otherwise. If scheme is 'http' or 'https', is_ssl() is overridden. In case of Wordpress Network setup, use network_admin_url() instead.
admin_url( $path, $scheme );
admin_url