Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

User:Miqrogroove/Function Xref

User:Miqrogroove

I'm continually frustrated by my own inability to quickly find code in the WordPress core, so here's my solution. All files are version 2.8.x unless otherwise specified.

Additional Resources

wp-admin

wp-admin/edit-category-form.php

  • _fill_empty_category

wp-admin/edit-form-advanced.php (2.9)

(all functions have been deleted)

wp-admin/includes

wp-admin/includes/meta-boxes.php (2.9)

  • link_submit_meta_box
  • link_categories_meta_box
  • link_target_meta_box
  • link_xfn_meta_box
  • link_advanced_meta_box
  • page_attributes_meta_box
  • post_author_meta_box
  • post_categories_meta_box
  • post_comment_meta_box
  • post_comment_status_meta_box
  • post_custom_meta_box
  • post_excerpt_meta_box
  • post_revisions_meta_box
  • post_slug_meta_box
  • post_submit_meta_box
  • post_tags_meta_box
  • post_thumbnail_meta_box @since 2.9
  • post_trackback_meta_box
  • xfn_check

wp-admin/includes/misc.php

  • codepress_footer_js
  • codepress_get_lang
  • extract_from_markers
  • got_mod_rewrite
  • iis7_add_rewrite_rule
  • iis7_delete_rewrite_rule
  • iis7_rewrite_rule_exists
  • iis7_save_url_rewrite_rules
  • iis7_supports_permalinks
  • insert_with_markers
  • save_mod_rewrite_rules
  • saveDomDocument
  • set_screen_options
  • show_message
  • update_home_siteurl
  • update_recently_edited
  • url_shorten
  • use_codepress
  • wp_doc_link_parse
  • wp_menu_unfold
  • wp_reset_vars @since 2.1
  • win_is_writable

wp-admin/includes/plugin.php (2.9)

  • _get_plugin_data_markup_translate
  • activate_plugin
  • activate_plugins
  • add_comments_page
  • add_dashboard_page
  • add_links_page
  • add_management_page
  • add_media_page
  • add_menu_page
  • add_object_page
  • add_option_update_handler
  • add_option_whitelist
  • add_options_page
  • add_pages_page
  • add_posts_page
  • add_submenu_page
  • add_theme_page
  • add_users_page
  • add_utility_page
  • deactivate_plugins
  • delete_plugins
  • get_admin_page_parent
  • get_admin_page_title
  • get_plugin_data
  • get_plugin_files
  • get_plugin_page_hook
  • get_plugin_page_hookname
  • get_plugins
  • is_plugin_active
  • is_uninstallable_plugin
  • option_update_filter
  • register_setting
  • remove_option_update_handler
  • remove_option_whitelist
  • settings_fields
  • uninstall_plugin
  • unregister_setting
  • user_can_access_admin_page
  • validate_active_plugins
  • validate_plugin

wp-admin/includes/post.php

  • _admin_notice_post_locked
  • _fix_attachment_links
  • _relocate_children
  • _wp_translate_postdata
  • add_meta
  • bulk_edit_posts
  • delete_meta
  • edit_post
  • get_available_post_mime_types
  • get_available_post_statuses
  • get_default_page_to_edit
  • get_default_post_to_edit
  • get_meta_keys
  • get_post_meta_by_id
  • get_post_to_edit
  • get_sample_permalink
  • get_sample_permalink_html
  • has_meta
  • post_exists
  • post_preview
  • postbox_classes
  • update_meta
  • wp_check_post_lock
  • wp_create_post_autosave
  • wp_edit_attachments_query
  • wp_edit_posts_query
  • wp_set_post_lock
  • wp_tiny_mce
  • wp_write_post
  • write_post

wp-admin/includes/taxonomy.php

  • category_exists
  • get_category_to_edit
  • get_tags_to_edit
  • get_terms_to_edit
  • tag_exists
  • wp_create_categories
  • wp_create_category
  • wp_create_tag
  • wp_create_term
  • wp_delete_category
  • wp_insert_category
  • wp_update_category

wp-admin/includes/template.php

  • __checked_selected_helper
  • _admin_search_query
  • _cat_row
  • _cat_rows
  • _draft_or_post_title
  • _list_meta_row
  • _page_rows
  • _post_row
  • _post_states
  • _tag_row
  • _wp_comment_row
  • _wp_get_comment_list
  • add_contextual_help
  • add_meta_box
  • add_settings_field
  • add_settings_section
  • browse_happy
  • cat_rows
  • checked
  • compression_test
  • display_page_row
  • do_meta_boxes
  • do_settings_fields
  • do_settings_sections
  • drag_drop_help
  • dropdown_categories
  • dropdown_link_categories
  • favorite_actions
  • find_posts_div
  • get_column_headers
  • get_hidden_columns
  • get_hidden_meta_boxes
  • get_inline_data
  • iframe_footer
  • iframe_header
  • inline_edit_row
  • inline_edit_term_row
  • link_cat_row
  • list_meta
  • manage_columns_prefs
  • meta_box_prefs
  • meta_form
  • page_rows
  • page_template_dropdown
  • parent_dropdown
  • plugins_search_help
  • post_rows
  • print_column_headers
  • register_column_headers
  • remove_meta_box
  • screen_icon
  • screen_layout
  • screen_meta
  • screen_options
  • selected
  • tag_rows
  • tb_close
  • the_attachment_links
  • the_post_password
  • touch_time
  • user_row
  • widgets_help
  • wp_category_checklist
  • wp_comment_reply
  • wp_convert_bytes_to_hr
  • wp_convert_hr_to_bytes
  • wp_dropdown_cats
  • wp_dropdown_roles
  • wp_import_upload_form
  • wp_link_category_checklist
  • wp_manage_media_columns
  • wp_manage_pages_columns
  • wp_manage_posts_columns
  • wp_max_upload_size
  • wp_popular_terms_checklist
  • wp_remember_old_slug
class Walker_Category_Checklist
  • end_el
  • end_lvl
  • start_el
  • start_lvl

wp-includes

wp-includes/author-template.php (2.9)

wp-includes/category.php

wp-includes/category-template.php

wp-includes/classes.php

class Walker

  • display_element
  • end_el
  • end_lvl
  • get_number_of_root_elements
  • paged_walk
  • start_el
  • start_lvl
  • unset_children
  • walk

class Walker_Category

  • end_el
  • end_lvl
  • start_el
  • start_lvl

class Walker_CategoryDropdown

  • start_el

class Walker_Page

  • end_el
  • end_lvl
  • start_el
  • start_lvl

class Walker_PageDropdown

  • start_el

class WP

  • add_query_var
  • build_query_string
  • handle_404
  • init
  • main
  • parse_request
  • query_posts
  • register_globals
  • send_headers
  • set_query_var
  • WP

class WP_Ajax_Response

  • add
  • send
  • WP_Ajax_Response

class WP_Error

  • add
  • add_data
  • get_error_code
  • get_error_codes
  • get_error_data
  • get_error_message
  • get_error_messages
  • WP_Error

class WP_MatchesMapRegex

  • _map
  • apply
  • callback
  • WP_MatchesMapRegex

wp-includes/comment-template.php

class Walker_Comment

  • end_el
  • end_lvl
  • start_el
  • start_lvl

wp-includes/formatting.php

  • _deep_replace
  • _links_add_base
  • _links_add_target
  • _make_email_clickable_cb
  • _make_url_clickable_cb
  • _make_web_ftp_clickable_cb
  • _wp_specialchars
  • _wptexturize_pushpop_element
  • addslashes_gpc
  • antispambot
  • attribute_escape
  • backslashit
  • balanceTags
  • clean_pre
  • clean_url
  • convert_chars
  • convert_smilies
  • ent2ncr
  • esc_attr
  • esc_html
  • esc_js
  • esc_sql
  • esc_url
  • esc_url_raw
  • force_balance_tags
  • format_to_edit
  • format_to_post
  • funky_javascript_callback
  • funky_javascript_fix
  • get_date_from_gmt
  • get_gmt_from_date
  • htmlentities2
  • human_time_diff
  • is_email
  • iso8601_timezone_to_offset
  • iso8601_to_datetime
  • js_escape
  • like_escape
  • links_add_base_url
  • links_add_target
  • make_clickable
  • normalize_whitespace
  • popuplinks
  • remove_accents
  • sanitize_email
  • sanitize_file_name
  • sanitize_html_class
  • sanitize_option
  • sanitize_sql_orderby
  • sanitize_text_field
  • sanitize_title
  • sanitize_title_with_dashes
  • sanitize_url
  • sanitize_user
  • seems_utf8
  • shortcode_unautop
  • stripslashes_deep
  • tag_escape
  • trailingslashit
  • translate_smiley
  • untrailingslashit
  • urlencode_deep
  • utf8_uri_encode
  • wp_check_invalid_utf8
  • wp_html_excerpt
  • wp_htmledit_pre
  • wp_iso_descrambler
  • wp_make_link_relative
  • wp_parse_str
  • wp_pre_kses_less_than
  • wp_pre_kses_less_than_callback
  • wp_rel_nofollow
  • wp_rel_nofollow_callback
  • wp_richedit_pre
  • wp_specialchars
  • wp_specialchars_decode
  • wp_sprintf
  • wp_sprintf_l
  • wp_strip_all_tags
  • wp_trim_excerpt
  • wpautop
  • wptexturize
  • zeroise

wp-includes/functions.php (2.9)

  • _cleanup_header_comment
  • _search_terms_tidy
  • _wp_timezone_choice_usort_callback @since 2.9
  • add_magic_quotes
  • add_option
  • add_site_option @since 2.8
  • add_query_arg
  • bool_from_yn
  • build_query
  • cache_javascript_headers
  • current_time
  • date_i18n
  • debug_fclose
  • debug_fopen
  • debug_fwrite
  • delete_all_user_settings
  • delete_option
  • delete_site_option @since 2.9
  • delete_site_transient @since 2.9
  • delete_transient
  • delete_user_setting
  • do_enclose
  • do_feed
  • do_feed_atom
  • do_feed_rdf
  • do_feed_rss
  • do_feed_rss2
  • do_robots
  • form_option
  • get_all_user_settings
  • get_alloptions
  • get_allowed_mime_types
  • get_file_data
  • get_num_queries
  • get_option
  • get_site_option @since 2.8
  • get_site_transient
  • get_status_header_desc
  • get_transient
  • get_user_setting
  • get_weekstartend
  • is_blog_installed
  • is_new_day
  • is_serialized
  • is_serialized_string
  • make_url_footnote
  • maybe_serialize
  • maybe_unserialize
  • mysql2date
  • nocache_headers
  • number_format_i18n
  • path_is_absolute
  • path_join
  • remove_query_arg
  • set_site_transient
  • set_transient
  • set_user_setting
  • size_format
  • status_header
  • update_option
  • update_site_option @since 2.8
  • wp
  • wp_check_filetype
  • wp_die
  • wp_explain_nonce
  • wp_ext2type
  • wp_get_http
  • wp_get_http_headers
  • wp_get_nocache_headers
  • wp_get_original_referer
  • wp_get_referer
  • wp_load_alloptions
  • wp_maybe_load_embeds
  • wp_mkdir_p
  • wp_nonce_ays
  • wp_nonce_field
  • wp_nonce_url
  • wp_original_referer_field
  • wp_protect_special_option
  • wp_referer_field
  • wp_remote_fopen
  • wp_scheduled_delete
  • wp_set_all_user_settings
  • wp_timezone_choice @since 2.9
  • wp_timezone_override_offset @since 2.8
  • wp_timezone_supported @since 2.9
  • wp_unique_filename
  • wp_upload_bits
  • wp_upload_dir
  • wp_user_settings
  • xmlrpc_getpostcategory
  • xmlrpc_getposttitle
  • xmlrpc_removepostdata

wp-includes/general-template.php

wp-includes/link-template.php

wp-includes/pluggable.php

  • auth_redirect
  • check_admin_referer
  • check_ajax_referer
  • get_avatar
  • get_currentuserinfo
  • get_user_by
  • get_user_by_email
  • get_userdata
  • get_userdatabylogin
  • is_user_logged_in
  • set_current_user
  • wp_authenticate
  • wp_check_password
  • wp_clear_auth_cookie
  • wp_clearcookie
  • wp_create_nonce
  • wp_generate_auth_cookie
  • wp_generate_password
  • wp_get_cookie_login
  • wp_get_current_user
  • wp_hash
  • wp_hash_password
  • wp_login
  • wp_logout
  • wp_mail
  • wp_new_user_notification
  • wp_nonce_tick
  • wp_notify_moderator
  • wp_notify_postauthor
  • wp_parse_auth_cookie
  • wp_password_change_notification
  • wp_rand
  • wp_redirect
  • wp_safe_redirect
  • wp_salt
  • wp_sanitize_redirect
  • wp_set_auth_cookie
  • wp_set_current_user
  • wp_set_password
  • wp_setcookie
  • wp_text_diff
  • wp_validate_auth_cookie
  • wp_validate_redirect
  • wp_verify_nonce

wp-includes/plugin.php

wp-includes/post.php

  • _future_post_hook
  • _get_post_ancestors
  • _publish_post_hook
  • _save_post_hook
  • _set_preview
  • _show_post_preview
  • _transition_post_status
  • _wp_get_post_autosave_hack
  • _wp_post_revision_fields
  • _wp_put_post_revision
  • add_ping
  • add_post_meta
  • check_and_publish_future_post
  • clean_page_cache
  • clean_post_cache
  • delete_post_meta
  • delete_post_meta_by_key
  • get_all_page_ids
  • get_attached_file
  • get_children
  • get_enclosed
  • get_extended
  • get_lastpostdate
  • get_lastpostmodified
  • get_page
  • get_page_by_path
  • get_page_by_title
  • get_page_children
  • get_page_hierarchy
  • get_page_statuses
  • get_page_uri
  • get_pages
  • get_post
  • get_post_ancestors
  • get_post_custom
  • get_post_custom_keys
  • get_post_custom_values
  • get_post_field
  • get_post_meta
  • get_post_mime_type
  • get_post_status
  • get_post_statuses
  • get_post_type
  • get_posts
  • get_private_posts_cap_sql
  • get_pung
  • get_to_ping
  • is_local_attachment
  • is_sticky
  • sanitize_post
  • sanitize_post_field
  • set_post_type
  • stick_post
  • trackback_url_list
  • unstick_post
  • update_attached_file
  • update_page_cache
  • update_post_cache
  • update_post_caches
  • update_post_meta
  • update_postmeta_cache
  • wp_add_post_tags
  • wp_attachment_is_image
  • wp_check_for_changed_slugs
  • wp_count_attachments
  • wp_count_posts
  • wp_delete_attachment
  • wp_delete_post
  • wp_delete_post_revision
  • wp_get_attachment_metadata
  • wp_get_attachment_thumb_file
  • wp_get_attachment_thumb_url
  • wp_get_attachment_url
  • wp_get_post_autosave
  • wp_get_post_categories
  • wp_get_post_revision
  • wp_get_post_revisions
  • wp_get_post_tags
  • wp_get_post_terms
  • wp_get_recent_posts
  • wp_get_single_post
  • wp_insert_attachment
  • wp_insert_post
  • wp_is_post_autosave
  • wp_is_post_revision
  • wp_match_mime_types
  • wp_mime_type_icon
  • wp_post_mime_type_where
  • wp_publish_post
  • wp_restore_post_revision
  • wp_save_post_revision
  • wp_set_post_categories
  • wp_set_post_tags
  • wp_set_post_terms
  • wp_transition_post_status
  • wp_unique_post_slug
  • wp_update_attachment_metadata
  • wp_update_post

wp-includes/post-template.php

  • body_class
  • get_attachment_icon
  • get_attachment_icon_src
  • get_attachment_innerHTML
  • get_body_class
  • get_post_class
  • get_the_attachment_link
  • get_the_content
  • get_the_excerpt
  • get_the_guid
  • get_the_ID
  • get_the_password_form
  • get_the_title
  • has_excerpt
  • is_page_template
  • post_class
  • post_custom
  • post_password_required
  • prepend_attachment
  • sticky_class
  • the_attachment_link
  • the_content
  • the_excerpt
  • the_guid
  • the_ID
  • the_meta
  • the_title
  • the_title_attribute
  • walk_page_dropdown_tree
  • walk_page_tree
  • wp_dropdown_pages
  • wp_get_attachment_link
  • wp_link_pages
  • wp_list_pages
  • wp_list_post_revisions
  • wp_page_menu
  • wp_post_revision_title

wp-includes/query.php

class WP_Query

  • fill_query_vars
  • get
  • get_posts
  • get_queried_object
  • get_queried_object_id
  • have_comments
  • have_posts
  • init
  • init_query_flags
  • next_comment
  • next_post
  • parse_query
  • parse_query_vars
  • query
  • rewind_comments
  • rewind_posts
  • set
  • set_404
  • the_comment
  • the_post
  • WP_Query

wp-includes/taxonomy.php

  • _get_term_children
  • _get_term_hierarchy
  • _pad_term_counts
  • _update_post_term_count
  • clean_object_term_cache
  • clean_term_cache
  • create_initial_taxonomies
  • get_object_taxonomies
  • get_object_term_cache
  • get_objects_in_term
  • get_post_taxonomies
  • get_taxonomy
  • get_term
  • get_term_by
  • get_term_children
  • get_term_field
  • get_term_link
  • get_term_to_edit
  • get_terms
  • get_the_taxonomies
  • is_object_in_term
  • is_taxonomy
  • is_taxonomy_hierarchical
  • is_term
  • register_taxonomy
  • sanitize_term
  • sanitize_term_field
  • the_taxonomies
  • update_object_term_cache
  • update_term_cache
  • wp_count_terms
  • wp_defer_term_counting
  • wp_delete_object_term_relationships
  • wp_delete_term
  • wp_get_object_terms
  • wp_insert_term
  • wp_set_object_terms
  • wp_unique_term_slug
  • wp_update_term
  • wp_update_term_count
  • wp_update_term_count_now