Codex

User:Ramiy/Function Reference

Functions

Function Classification Change Log Source File
get_post Post
get_post_mime_type Post
get_post_status Post
get_post_type Post
get_posts Post
get_children Post
get_extended Post
wp_get_recent_posts Post
wp_get_single_post Post
is_single Post
is_sticky Post
wp_delete_post Post
wp_insert_post Post
wp_update_post Post
wp_publish_post Post
is_page Page
get_all_page_ids Page
get_page Page
get_page_by_path Page
get_page_by_title Page
get_page_children Page
get_page_hierarchy Page
get_page_uri Page
get_pages Page
page_uri_index Page
wp_list_pages Page
add_post_meta Custom Field (postmeta)
delete_post_meta Custom Field (postmeta)
update_post_meta Custom Field (postmeta)
get_post_meta Custom Field (postmeta)
get_post_custom Custom Field (postmeta)
get_post_custom_keys Custom Field (postmeta)
get_post_custom_values Custom Field (postmeta)
is_attachment Attachment
get_attached_file Attachment
update_attached_file Attachment
is_local_attachment Attachment
wp_insert_attachment Attachment
wp_delete_attachment Attachment
wp_get_attachment_image Attachment
wp_get_attachment_image_src Attachment
wp_get_attachment_metadata Attachment
wp_update_attachment_metadata Attachment
wp_get_attachment_url Attachment
wp_get_attachment_thumb_file Attachment
wp_get_attachment_thumb_url Attachment
wp_attachment_is_image Attachment
wp_mime_type_icon Attachment
wp_check_for_changed_slugs Attachment
wp_count_posts Attachment
wp_trim_excerpt
add_meta_box
wp_get_post_categories
wp_set_post_categories
get_the_content
get_the_author
is_category Categories
cat_is_ancestor_of Categories
get_all_category_ids Categories
get_categories Categories
get_category Categories
get_category_by_path Categories
get_category_by_slug Categories
get_cat_ID Categories
get_cat_name Categories
get_category_link Categories
is_tag Tags
get_tags Tags
get_tag Tags
is_taxonomy Taxonomy
is_taxonomy_hierarchical Taxonomy
is_term Taxonomy
get_terms Taxonomy
get_term_by Taxonomy
get_term_children Taxonomy
register_taxonomy Taxonomy
wp_get_object_terms Taxonomy




User and Author Functions

These functions are in user.php, pluggable.php, registration.php. See also Template Tags.

| width="50%" |

Feed Functions

These functions are in functions.php, feed.php, rss.php

|- valign="top" | width="50%" |

Comment, Ping, and Trackback Functions

These functions are found in comment.php, functions.php, post.php. See also Template Tags.

| width="50%" |

Action, Filter, and Plugin Functions

These functions are contained in plugin.php. See also Plugin API.

|- valign="top" | width="50%" |

Theme-Related Functions

These functions are found in theme.php.

| width="50%" |

Formatting Functions

These functions are contained in formatting.php, functions.php, kses.php.

|- valign="top" | width="50%" |

Miscellaneous Functions

These functions are contained in formatting.php, functions.php, bookmarks.php, cron.php, l10n.php, user.php, pluggable.php

Time/Date Functions

Serialization

Options

XMLRPC

Localization See also Translating WordPress.

Cron (Scheduling)

Miscellaneous

| width="50%" |

Classes

The following classes were created by WordPress developers, and are found in files capabilities.php, classes.php, class-snoopy.php, locale.php, query.php, rewrite.php, script-loader.php, wp-db.php:

  • WP - general request handling
  • WP_Ajax_Response - AJAX handling
  • WP_Object_Cache (formerly WP_Cache) - Object cache (and functions wp_cache_add, wp_cache_close, wp_cache_delete, wp_cache_flush, wp_cache_get, wp_cache_init, wp_cache_replace, wp_cache_set)
  • WP_Error - error handling (and function is_wp_error)
  • WP_Locale - handles date and time locales
  • WP_Query - Request parsing and manipulation, posts fetching (with functions get_query_var, query_posts, have_posts, in_the_loop, rewind_posts, the_post, wp_old_slug_redirect, setup_postdata, as well as the Conditional Tags is_*)
  • WP_Rewrite - Rewrite rules (and functions add_rewrite_rule, add_rewrite_tag, add_feed, add_rewrite_endpoint, url_to_postid)
  • WP_Roles, WP_Role, WP_User - Users and capabilities - map_meta_cap, current_user_can, get_role, add_role, remove_role
  • WP_Scripts - JavaScript loading (and functions wp_print_scripts, wp_register_script, wp_deregister_script wp_enqueue_script)
  • WP_Styles - CSS stylesheet loading (and functions wp_print_styles, wp_register_style, wp_deregister_style, wp_enqueue_style )
  • Display tree-like data - Walker, Walker_Page, Walker_PageDropdown, Walker_Category, Walker_CategoryDropdown
  • wpdb - Database interface

The following classes were created by outside developers, and are found in files class-IXR.php, class-pop3.php, class-snoopy.php, gettext.php, rss.php, streams.php:

  • IXR - XML-RPC Classes, including IXR_Value, IXR_Message, IXR_Server, IXR_IntrospectionServer, IXR_Request, IXR_Client, IXR_ClientMulticall, IXR_Error, IXR_Date, IXR_Base64
  • Snoopy - HTTP client
  • gettext_reader (part of PHP-gettext) - Localization Class
  • RSS Classes (MagpieRSS and RSSCache) (and functions fetch_rss, is_info, is_success, is_redirect, is_error, is_client_error, is_server_error, parse_w3cdtf, wp_rss, get_rss)
  • POP3: SquirrelMail wrapper
  • StreamReader, StringReader, FileReader, CachedFileReader

|}