Hướng dẫn codex wordpress org functions - chức năng tổ chức codex wordpress

Ngôn ngữ: Tiếng Anh • Español • فار • Français • Tiếng Ý • 日本語 • Bồ Đào Nha do Brasil • Türkçe • Türkçe • Türkçe • English • Español • فارسی • Français • Italiano • 日本語 ქართული • 한국어 • Português do Brasil • Русский • Türkçe • עברית • 中文[简体] • 中文[繁體] • [Add your language]

Nội dung

  • 1fifts theo thể loại Functions by category
    • 1.1post, loại bài đăng tùy chỉnh, trang, tệp đính kèm và các chức năng đánh dấu Post, Custom Post Type, Page, Attachment and Bookmarks Functions
    • 1.2c Category, Tag và Tag và Tag Chức năng Category, Tag and Taxonomy Functions
    • Các chức năng 1.3User và tác giả User and Author Functions
    • Các chức năng 1.4Feed Feed Functions
    • Hàm API 1.5HTTP HTTP API Functions
    • 1.6comment, ping và các chức năng theo dõi Comment, Ping, and Trackback Functions
    • 1.7Action, bộ lọc và biểu mẫu plugin Action, Filter, and Plugin Functions
    • Các chức năng liên quan đến 1.8 Theme-Related Functions
    • 1.9 Chức năng Formatting Functions
    • Các chức năng 1.10Miscellanous Miscellaneous Functions
    • Các chức năng 1.11Multisite Multisite functions
  • Tài liệu tham khảo 2official và không chính thức Official and Unofficial References

Các tập tin của các từ xác định nhiều chức năng PHP hữu ích. Một số chức năng, được gọi là thẻ mẫu, được xác định đặc biệt để sử dụng trong các chủ đề WordPress. Ngoài ra còn có một số chức năng liên quan đến hành động và bộ lọc [API plugin], do đó được sử dụng chủ yếu để phát triển các plugin. Phần còn lại được sử dụng để tạo Quỹ WordPress cốt lõi.

Nhiều chức năng WordPress cốt lõi rất hữu ích cho plugin và chủ đề phát triển. Vì vậy, bài viết này liệt kê hầu hết các chức năng cốt lõi, không bao gồm các thẻ mẫu. Ở dưới cùng của trang, có một phần liệt kê các tài nguyên khác để tìm thông tin về các chức năng WordPress. Ngoài thông tin này, trang web tham chiếu mã WordPress chi tiết tất cả các chức năng WordPress theo phiên bản kể từ 2.6.1

Bạn có thể giúp trang này đầy đủ hơn!

Dưới đây là một số điều bạn có thể làm để giúp đỡ:

  • Thêm tài liệu vào các chức năng không được ghi chép lại, bằng cách tạo các trang phụ hoặc ít nhất là bằng cách thêm các nhận xét ngắn trong danh sách dưới đây. Nếu bạn tạo một trang con cho một hàm, vui lòng bao gồm thông tin và ví dụ về chức năng đó, nếu có thể, theo ví dụ trong các thẻ mẫu.
  • Liệt kê nhiều chức năng hơn ở đây, theo cấu trúc danh mục.
  • Sửa lỗi bằng cách di chuyển các chức năng sang các danh mục tốt hơn nơi chiếm đoạt và tất nhiên là sửa lỗi đánh máy. Lưu ý: rằng một hàm xuất hiện trong nhiều loại là OK.

Đọc đóng góp cho WordPress để tìm thêm về cách bạn có thể đóng góp cho nỗ lực!

Chức năng theo thể loại

Bài đăng, loại bài đăng tùy chỉnh, trang, tệp đính kèm và các chức năng đánh dấu

Bài viết

  • Get_adjcent_post
  • Get_boundy_post
  • Get_children
  • Get_extends
  • Get_next_post
  • Get_next_posts_link
  • Next_posts_link
  • Get_permalink
  • The_Permalink
  • Get_the_excerpt
  • Trích đoạn
  • Get_the_post_thumbnail
  • Được đăng tải
  • Get_post_field
  • Get_post_forcestors
  • Get_post_mime_type
  • Get_post_staus
  • Get_post_format
  • Set_post_format
  • Get_edit_post_link
  • Get_delete_post_link
  • Get_previous_post
  • Get_previous_posts_link
  • Trước_posts_link
  • Get_posts
  • Có_posts
  • IS_POST [không dùng nữa]
  • is_single
  • is_sticky
  • Get_the_id
  • The_id
  • Bài
  • WP_GET_RECENT_POSTS
  • Wp_get_single_post [không dùng nữa]
  • Has_post_thumbnail
  • Has_excerpt
  • Has_post_format

Trạng thái bài tùy chỉnh

  • Đăng ký_post_status

Loại bài tùy chỉnh

  • Đăng ký_post_type
  • is_post_type_archive
  • Post_type_archive_title
  • Add_post_type_support
  • Remove_post_type_support
  • Post_type_suports
  • Set_post_type
  • Post_type_exists
  • Get_post_type
  • Get_post_types
  • Get_post_type_archive_link
  • Get_post_type_object
  • Get_post_type_capability
  • Get_post_type_labels
  • IS_POST_TYPE_HIERARCHICS

Đăng/xóa đăng

  • Wp_delete_post
  • Wp_insert_post
  • Wp_publish_post
  • WP_TRASH_POST
  • WP_UPDATE_POST

Trang

  • Get_all_page_ids
  • Get_ionces
  • Get_page [không dùng nữa]
  • Get_page_link
  • Get_page_by_path
  • Get_page_by_title
  • Get_page_children
  • Get_page_hierarchy
  • Get_page_uri
  • Get_pages
  • is_page
  • Page_uri_index [phương pháp của lớp wp_rewrite]
  • Wp_link_pages
  • Wp_list_pages
  • WP_PAGE_MENU
  • Wp_dropdown_pages

Trường tùy chỉnh [Postmeta]

  • Add_post_meta
  • XÓA_POST_META
  • Get_post_custom
  • Get_post_custom_keys
  • Get_post_custom_vales
  • Get_post_meta
  • Update_post_meta
  • Đăng ký_meta

đính kèm

  • Get_tatched_file
  • Image_Resize [không dùng nữa]
  • Image_edit_befor_change [được chuyển đến đối tượng WP_IMAGE_EDITOR]
  • is_tatchment
  • Is_local_tatchment
  • Set_post_thumbnail
  • Update_tatached_file
  • Wp_tattachment_is_image
  • Wp_crete_thumbnail [không dùng nữa]
  • Wp_insert_tattachment
  • Wp_delete_attachment
  • Wp_get_attachment_image
  • Wp_get_attachment_link
  • Wp_get_attachment_image_src
  • Wp_get_attachment_metadata
  • Wp_get_attachment_thumb_file
  • Wp_get_attachment_thumb_url
  • Wp_get_attachment_url
  • Wp_check_for_changed_slugs
  • WP_Count_Posts
  • Wp_get_mime_types
  • Wp_mime_type_icon
  • Wp_generate_tatchment_metadata
  • Wp_prepare_attachment_for_js
  • Wp_update_attachment_metadata

Dấu trang

  • Get_bookmark
  • Get_bookmarks
  • Wp_list_bookmark

Điều kiện

  • WP_GET_POST_COTORY
  • WP_SET_POST_COTORY
  • Wp_get_post_tags
  • Wp_set_post_tags
  • WP_GET_POST_TERMS
  • WP_SET_TERMS
  • Wp_count_terms
  • has_term
  • is_object_in_term


và tothss

  • Add_meta_box
  • Remove_meta_box
  • get_the_id
  • The_id
  • get_the_Author
  • tác giả
  • get_the_author_posts
  • get_the_content
  • Nội dung
  • get_the_title
  • tiêu đề
  • the_title_attribution
  • wp_trim_excerpt
  • WP_GET_POST_REVISION
  • WP_GET_POST_REVIDS
  • WP_IS_POST_REVISION
  • paginate_links

Danh mục, thẻ và các chức năng phân loại

Thể loại

  • CAT_IS_ANCESTOR_OF
  • GET_ALL_C CARGETORY_IDS [không dùng nữa]
  • get_ancestors
  • get_cat_id
  • get_cat_name
  • get_corgies
  • get_cargety
  • get_carget_by_path
  • get_carget_by_slug
  • get_the_carget_by_id
  • get_the_carget_list
  • get_c Category_link
  • get_c Category_parents
  • get_the_cargety
  • SIME_CAT_TITLE
  • in_carity
  • is_cargety
  • The_caregory
  • WP_C Category_CheckList
  • wp_dropdown_corgies
  • WP_LIST_CAGETORY

Creation Creation

  • WP_CREATE_CAGETORY
  • WP_DELETE_CAGETORY
  • WP_INSERT_CAGETORY

Tags

  • get_tag
  • get_tag_link
  • get_tags
  • get_the_tag_list
  • get_the_tags
  • has_tag
  • is_tag
  • The_tags
  • đơn_tag_title
  • Tag_descrip
  • wp_generate_tag_cloud
  • wp_tag_cloud

Phân loại

  • get_object_taxonomies
  • get_edit_term_link
  • get_taxonomy
  • get_taxonomies
  • get_term
  • get_the_term_list
  • get_term_by
  • The_terms
  • get_the_terms
  • get_term_children
  • get_term_link
  • get_terms
  • is_taxonomy [không dùng nữa]
  • is_tax
  • is_taxonomy_Hierarchical
  • is_term [không dùng nữa]
  • Phân loại_exists
  • term_exists
  • Đăng ký_taxonomy
  • Đăng ký_taxonomy_for_object_type
  • wp_get_object_terms
  • wp_remove_object_terms
  • wp_set_object_terms
  • wp_insert_term
  • wp_update_term
  • wp_delete_term
  • WP_TERMS_CHECKLIST

Quản trị viên, Vai trò và Khả năng

  • add_cap
  • add_role
  • Tác giả_Can
  • current_user_can
  • current_user_can_for_blog
  • get_role
  • get_super_admins
  • is_super_admin
  • MAP_META_CAP
  • Tháo nắp
  • remove_role
  • user_can

Người dùng và tác giả

  • auth_redirect
  • Count_users
  • Count_user_Posts
  • Count_many_users_posts
  • Gửi email tồn tại
  • get_currentuserinfo
  • get_civerse_user_id
  • get_profile [không dùng nữa]
  • get_user_by
  • get_userdata
  • get_usernumposts [không dùng nữa]
  • get_users
  • set_cien_user [không dùng nữa]
  • user_pass_ok [không dùng nữa]
  • WP_Authenticate
  • Tên người dùng đã tồn tại
  • VALIDITY_USERNAME
  • wp_dropdown_users
  • WP_GET_CURRENT_USER
  • WP_SET_CURRENT_USER
  • wp_set_password
  • get_Author_posts_url
  • get_the_modified_author
  • is_multi_Author

Người dùng meta

  • add_user_meta
  • Delete_user_meta
  • get_user_meta
  • update_user_meta
  • get_the_author_meta

Người dùng chèn/loại bỏ

  • wp_create_user
  • wp_delete_user
  • wp_insert_user
  • wp_update_user

Đăng nhập Đăng xuất

  • is_user_logged_in
  • wp_login_form
  • WP_Signon
  • WP_LOGOUT
  • WP_LOGINOUT
  • WP_LOGOUT_URL

Chức năng cấp dữ liệu

  • BlogInfo_RSS
  • bình luận_Author_rss
  • bình luận_link
  • bình luận_text_rss
  • do_feed
  • DO_FEED_ATOM
  • DO_FEED_RDF
  • DO_FEED_RSS
  • DO_FEED_RSS2
  • fetch_feed
  • fetch_rss [không dùng nữa]
  • get_Author_feed_link
  • get_bloginfo_rss
  • get_carget_feed_link
  • get_comment_link
  • get_comment_author_rss
  • get_post_comments_feed_link
  • get_rss [không dùng nữa]
  • get_search_comments_feed_link
  • get_search_feed_link
  • get_the_carget_rss
  • get_the_title_rss
  • permalink_single_rss [không dùng nữa]
  • post_comments_feed_link
  • RSS_ENCLOSE
  • the_title_rss
  • The_c Category_RSS
  • the_content_rss [không dùng nữa]
  • The_excerpt_rss
  • WP_RSS [không dùng nữa]

Hàm API HTTP

  • wp_remote_get
  • wp_remote_retrieve_body
  • wp_get_http_headers
  • wp_remote_fopen

Nhận xét, ping và các chức năng theo dõi

  • add_ping
  • add_comment_meta
  • Check_comment
  • bình luận_text
  • dạng bình luận
  • bình luận_number
  • Discover_pingback_server_uri
  • Delete_comment_meta
  • do_all_pings
  • do_enclose
  • do_trackbacks
  • Generic_ping
  • get_approved_comments
  • get_avatar
  • get_comment
  • get_comment_text
  • get_comment_meta
  • get_comments
  • wp_list_comments
  • get_enclosed
  • Get_LastCommentModified
  • get_pung
  • get_to_ping
  • có_comments
  • get_comment_Author
  • is_trackback
  • pingback
  • Quyền riêng tư_ping_filter
  • sanitize_comment_cookies
  • theo dõi lại
  • Trackback_url
  • Trackback_url_list
  • update_comment_meta
  • weblog_ping
  • wp_allow_comment
  • wp_count_comments
  • wp_delete_comment
  • wp_filter_comment
  • wp_get_comment_status
  • WP_GET_CURRENT_commenter
  • wp_insert_comment
  • wp_new_comment
  • wp_set_comment_status
  • wp_throttle_comment_flood
  • wp_update_comment
  • wp_update_comment_count
  • wp_update_comment_count_now

Bình luận vòng lặp

  • bình luận_ class
  • bình luận_id
  • bình luận_Author
  • bình luận_date
  • bình luận_time
  • get_comment_date
  • get_comment_time

Nhận xét phân trang

  • paginate_comments_links
  • Trước đó_comments_link
  • next_comments_link
  • get_comment_pages_count

Các chức năng hành động, bộ lọc và plugin

Bộ lọc [tham khảo] [Reference]

  • has_filter
  • add_filter
  • áp dụng các bộ lọc
  • Ứng dụng_filters_ref_array
  • current_filter
  • Merge_filters
  • Remove_filter
  • Remove_all_filters

Hành động [tham khảo] [Reference]

  • has_action
  • add_action
  • DO_Action
  • DO_Action_Ref_Array
  • DID_Action
  • Remove_Action
  • remove_all_actions

Plugin [tham khảo] [Reference]

  • plugin_basename
  • plugins_url
  • get_plugin_data
  • get_admin_page_title
  • plugin_dir_path
  • Đăng ký_activation_hook
  • Đăng ký_deactivation_hook
  • menu_page_url
  • is_plugin_active
  • is_plugin_active_for_network
  • is_plugin_inactive
  • is_plugin_page
  • add_contextual_help [không dùng nữa]
  • get_plugins

Widgets [tham khảo] [Reference]

  • is_active_widget
  • Đăng ký_widget
  • The_widget
  • ungister_widget
  • wp_add_dashboard_widget
  • wp_convert_widget_sinstall
  • wp_get_sideBars_widgets
  • wp_get_widget_defaults
  • wp_register_sideBar_widget
  • wp_register_widget_control
  • wp_set_sideBars_widgets
  • wp_unregister_sideBar_widget
  • wp_unregister_widget_control
  • wp_widget_descrip


Cài đặt [Tham khảo] [Reference]

  • Đăng ký_sinsting
  • unpister_sinsting
  • Cài đặt_fields
  • do_sinstall_fields
  • do_sinstall_sections
  • add_sinstall_field
  • add_sinstall_section
  • add_sinstall_error
  • get_sinstall_errors
  • Cài đặt_errors

Mã ngắn [tham khảo] [Reference]

  • add_shortcode
  • DO_SHORTCODE
  • do_shortcode_tag
  • GET_SHORTCODE_REGEX
  • remove_shortcode
  • remove_all_shortcodes
  • Shortcode_atts
  • shortcode_parse_atts
  • dải_shortcodes

Các chức năng liên quan đến chủ đề

Bao gồm các chức năng

  • Nhận xét_template
  • get_footer
  • get_header
  • get_sideBar
  • get_search_form

Cac chưc năng khac

  • add_custom_background [không dùng nữa]
  • add_custom_image_header [không dùng nữa]
  • add_image_size
  • add_theme_support
  • Body_Class
  • current_theme_supports
  • Dynamic_sideBar
  • get_404_template
  • get_archive_template
  • get_attachment_template
  • get_Author_template
  • get_body_ class
  • get_c Category_template
  • get_comments_popup_template
  • Get_Current_Theme
  • get_date_template
  • get_header_image
  • get_header_textcolor
  • get_home_template
  • get_locale_stylesheet_uri
  • get_page_template
  • get_paged_template
  • get_post_class
  • get_query_template
  • get_search_template
  • get_single_template
  • Get_StyleSheet
  • get_stylesheet_directory
  • get_stylesheet_directory_uri
  • get_stylesheet_uri
  • get_tag_template
  • get_taxonomy_template
  • get_template
  • get_template_directory
  • get_template_directory_uri
  • get_theme_file_uri
  • get_theme_file_path
  • get_template_part
  • get_theme [không dùng nữa]
  • wp_get_theme
  • get_theme_data [không dùng nữa]
  • get_theme_support
  • get_theme_mod
  • get_theme_mods
  • get_theme_root
  • get_theme_roots
  • get_theme_root_uri
  • get_themes [không dùng nữa]
  • has_header_image
  • tiêu đề_image
  • Header_TextColor
  • trong vòng
  • is_child_theme
  • is_active_sideBar
  • is_admin_bar_showing
  • is_customize_preview
  • is_dynamic_sideBar
  • ngôn ngữ_attributes
  • Chạy bản mẫu
  • Locale_StyleSheet
  • Locate_Template
  • Post_Class
  • Xem trước_theme
  • Xem trước_theme_ob_filter
  • Xem trước_theme_ob_filter_callback
  • Đăng ký_nav_menu
  • Đăng ký_nav_menus
  • get_registered_nav_menus
  • wp_create_nav_menu
  • Đăng ký_sideBar
  • Đăng ký_sidebars
  • Đăng ký_theme_directory
  • remove_theme_mod
  • remove_theme_mods
  • remove_theme_support
  • Yêu cầu_if_theme_supports
  • search_theme_directories
  • set_theme_mod
  • Switch_theme
  • VALIDITY_CURRENT_THEME
  • unregister_nav_menu
  • ungister_sideBar
  • wp_add_inline_style
  • wp_clean_theme_cache
  • wp_get_archives
  • wp_get_nav_menu_items
  • wp_get_theme
  • WP_NAV_MENU
  • wp_oembed_remove_provider
  • WP_PAGE_MENU
  • wp_title

Định dạng chức năng

  • absint
  • add_magic_quotes
  • AddSlashes_GPC
  • Antispambot
  • thuộc tính_escape [không dùng nữa]
  • Backslashit
  • Balancetags
  • Clean_pre
  • clean_url [không dùng nữa]
  • Convert_chars
  • Convert_Smilies
  • ent2ncr
  • ESC_ATTR
  • ESC_HTML
  • ESC_JS
  • ESC_TEXTAREA
  • ESC_SQL
  • ESC_URL
  • ESC_URL_RAW
  • lực lượng_balance_tags
  • Định dạng_to_edit
  • format_to_post [không dùng nữa]
  • funky_javascript_fix [không dùng nữa]
  • HTMLEntities2
  • is_email
  • js_escape [không dùng nữa]
  • make_clickyable
  • Popuplinks
  • remove_accents
  • Sanitize_email
  • sanitize_file_name
  • Sanitize_html_Class
  • Sanitize_key
  • Sanitize_mime_type
  • Sanitize_option
  • sanitize_sql_orderby
  • sanitize_text_field
  • sanitize_title
  • sanitize_title_for_query
  • sanitize_title_with_dashes
  • sanitize_user
  • Có vẻ như_utf8
  • Stripslashes_deep
  • Trailingslashit
  • Untrailingslashit
  • urlencode_deep
  • url_shorten
  • UTF8_URI_ENCODE
  • WPAUTOP
  • wptexturize
  • wp_filter_kses
  • wp_filter_post_kses
  • wp_filter_nohtml_kses
  • wp_iso_descrambler
  • wp_kses
  • wp_kses_array_lc
  • WP_KSES_ATTR
  • wp_kses_bad_protocol
  • wp_kses_bad_protocol_once
  • wp_kses_bad_protocol_once2
  • wp_kses_check_attr_val
  • wp_kses_decode_entities
  • wp_kses_hair
  • wp_kses_hook
  • wp_kses_html_error
  • wp_kses_js_entities
  • wp_kses_no_null
  • wp_kses_normalize_entities
  • wp_kses_normalize_entities2
  • WP_KSES_POST
  • wp_kses_split
  • wp_kses_split2
  • WP_KSES_STRIPSLASHES
  • wp_kses_version
  • wp_make_link_relative
  • wp_normalize_path
  • wp_rel_nofollow
  • WP_RICHEDIT_PRE
  • WP_Specialchars
  • wp_trim_words
  • không

Các chức năng linh tinh

Chức năng thời gian/ngày

  • thời điểm hiện tại
  • date_i18n
  • get_calendar
  • get_date_from_gmt
  • get_lastpostdate
  • get_lastpostmodified
  • get_day_link
  • get_gmt_from_date
  • get_month_link
  • cuộc hẹn
  • get_the_date
  • thời gian
  • get_the_time
  • the_modified_time
  • get_the_modified_time
  • get_weekstartend
  • get_year_link
  • human_time_diff
  • is_new_day
  • ISO8601_Timezone_to_offset
  • ISO8601_TO_DATETIME
  • mysql2date

Tuần tự hóa

  • is_serialized
  • is_serialized_string
  • Có thể_Serialize
  • Có thể_unserialize

Tùy chọn

  • add_option
  • add_site_option
  • Xóa_option
  • Xóa_Site_Option
  • form_option
  • get_alloptions [không dùng nữa]
  • get_site_option
  • get_site_url
  • get_admin_url
  • get_user_option
  • get_option
  • update_option
  • update_site_option
  • update_user_option
  • wp_load_alloptions

Tạm thời

  • set_transient []
  • get_transient []
  • Xóa_Transient []
  • set_site_transient []
  • get_site_transient []
  • Xóa_Site_Transient []

Chức năng menu quản trị

  • add_menu_page
  • remove_menu_page
  • add_submenu_page
  • remove_submenu_page
  • add_object_page
  • add_utility_page
  • add_comments_page
  • add_dashboard_page
  • add_links_page
  • add_man quản lý_page
  • add_media_page
  • add_options_page
  • add_pages_page
  • add_plugins_page
  • add_posts_page
  • add_theme_page
  • add_users_page

Chức năng thanh công cụ

  • add_node
  • remove_node
  • thêm nhóm
  • get_node
  • get_nodes

Người trợ giúp hình thức

  • đã kiểm tra
  • Vô hiệu hóa
  • đã chọn
  • đệ trình_button
  • get_submit_button


Không giới thiệu và giới thiệu [bảo mật]

  • Check_admin_referer
  • Check_ajax_referer
  • WP_CREATE_NONCE
  • wp_explain_nonce [không dùng nữa]
  • wp_get_original_referer
  • wp_get_referer
  • wp_nonce_ays
  • WP_NONCE_FIELD
  • WP_NONCE_URL
  • wp_original_referer_field
  • wp_referer_field
  • WP_SEND_JSON
  • wp_send_json_error
  • wp_send_json_success
  • wp_verify_nonce

XMLRPC

  • XMLRPC_GETPOSTC Categortory
  • xmlrpc_getposttitle
  • xmlrpc_removepostdata
  • user_pass_ok [không dùng nữa]

Bản địa hóa

  • __
  • _x
  • _N
  • _nx
  • _e
  • _Ví dụ
  • _ngetText [không dùng nữa]
  • ESC_ATTR__
  • ESC_ATTR_E
  • ESC_HTML__
  • ESC_HTML_E
  • get_locale
  • load_default_textdomain
  • load_plugin_textdomain
  • load_muplugin_textdomain
  • load_textdomain
  • load_theme_textdomain
  • is_rtl

Cron [Lập lịch]

  • Spawn_cron
  • wp_clear_scheduled_hook
  • wp_cron
  • wp_get_schedule
  • wp_get_schedules
  • wp_next_scheduled
  • wp_reschedule_event
  • wp_schedule_event
  • wp_schedule_single_event
  • wp_unschedule_event

Chỉ số thẻ có điều kiện

  • bình luận_open
  • has_nav_menu
  • has_tag
  • in_carity
  • IS_404
  • is_admin
  • is_archive
  • is_attachment
  • is_Author
  • is_cargety
  • is_comments_popup
  • is_customize_preview
  • is_date
  • ngày này
  • is_feed
  • is_front_page
  • là nhà
  • is_month
  • is_page
  • is_page_template
  • is_paged
  • is_preview
  • is_search
  • is_single
  • is_singular
  • is_sticky
  • is_tag
  • is_tax
  • is_time
  • is_trackback
  • is_year
  • PING_OPEN

Đăng ký kịch bản và phong cách

  • wp_dequeue_script
  • wp_dequeue_style
  • wp_deregister_script
  • wp_deregister_style
  • wp_enqueue_script
  • wp_enqueue_style
  • wp_localize_script
  • WP_Register_Script
  • WP_Register_Style
  • wp_script_is
  • wp_style_is

SQL

  • get_tax_sql
  • get_meta_sql
  • get_posts_by_author_sql

Điều khoản khác

  • add_editor_style
  • add_query_arg
  • add_rewrite_rule
  • admin_url
  • bool_from_yn
  • cache_javascript_headers
  • Capital_P_Dangit
  • clean_blog_cache
  • Content_url
  • do_robots
  • Flush_rewrite_rules
  • get_bloginfo
  • get_num_queries
  • get_post_stati
  • get_post_statuses
  • get_query_var
  • home_url
  • Bao gồm_url
  • is_blog_installed
  • is_main_site
  • is_main_query
  • is_multisite
  • IS_SSL
  • is_wp_error
  • log_app
  • make_url_footnote [không dùng nữa]
  • mạng_admin_url
  • mạng_home_url
  • mạng_site_url
  • Nocache_headers
  • plugin_dir_url
  • query_posts
  • remove_query_arg
  • tua lại_posts
  • setup_postdata
  • site_url
  • status_header
  • unzip_file
  • VALIDITY_FILE
  • VALATIDITY_FILE_TO_EDIT
  • WP
  • wp_cache_set
  • wp_cache_get
  • wp_cache_reset [không dùng nữa]
  • WP_CHECK_FILETYPE
  • wp_clearcookie [không dùng nữa]
  • WP_DIE
  • wp_editor
  • wp_footer
  • wp_get_cookie_login [không dùng nữa]
  • wp_get_image_editor
  • wp_get_installed_translations
  • WP_HASH
  • wp_handle_sideload
  • wp_head
  • wp_install_defaults
  • WP_IS_MOBILE
  • wp_mail
  • WP_MKDIR_P
  • wp_new_user_notification
  • wp_password_change_notification
  • wp_notify_moderator
  • wp_notify_postauthor
  • wp_parse_args
  • WP_REDIRECT
  • wp_reset_postdata
  • wp_reset_query
  • WP_SALT
  • WP_SAFE_REDIRECT
  • wp_set_auth_cookie
  • wp_strip_all_tags
  • WP_UPLOAD_BITS
  • WP_UPLOAD_DIR
  • wp_list_pluck
  • WP_TEXT_DIFF
  • post_submit_meta_box
  • WP_MAX_UPLOAD_SIZE

Chức năng đa

Kể từ v3.0, WordPress bao gồm chức năng WPMU. Có thể tìm thấy các chức năng WPMU cũ có thể được tìm thấy tại //codex.wordpress.org/wpmu_fifts [trang không dùng nữa].

Chức năng quản trị đa năng

  • xác nhận_delete_users
  • is_user_member_of_blog
  • wp_dashboard_quota

Các chức năng này được tìm thấy trong tệp wp-admin/bao gồm/ms.php [kể từ 3.0.0].

  • admin_notice_feed [không dùng nữa]
  • Tránh_Blog_Page_Permalink_Collision
  • Check_import_new_users
  • check_upload_size
  • Chọn_Primary_Blog
  • display_space_usage
  • FIX_IMPORT_FORM_SIZE
  • Định dạng_code_lang
  • get_site_allowed_theme [không dùng nữa]
  • Grant_Super_Admin
  • ms_deprecated_blogs_file [không dùng nữa]
  • Mu_Dropdown_litages
  • new_user_email_admin_notice
  • redirect_user_to_blog [không dùng nữa]
  • Làm mới_user_details
  • thu hồi_super_admin
  • Secret_salt_warning
  • send_confirmation_on_profile_email
  • show_post_thumbnail_warning [không dùng nữa]
  • site_admin_notice
  • Sync_carget_tag_slugs
  • update_option_new_admin_email
  • update_user_status
  • upload_is_user_over_quote
  • upload_space_sinsting
  • wpmu_delete_blog
  • wpmu_delete_user
  • wpmu_get_blog_allowedtheme [không dùng nữa]
  • _admin_notice_multisite_activate_plugins_page [không dùng nữa]


Chức năng đa

Các chức năng trang web/blog hoạt động với bảng blog và dữ liệu liên quan, được tìm thấy trong tệp WP-Includes/MS-Blogs.php [kể từ 3.0.0].

  • add_blog_option
  • xóa_blog_option
  • get_blogaddress_by_domain
  • get_blogaddress_by_id
  • get_blogaddress_by_name
  • get_blog_details
  • get_blog_option
  • get_blog_status
  • get_id_from_blogname
  • get_last_updated
  • is_arch được
  • Làm mới_blog_details
  • Khôi phục_cien_blog
  • switch_to_blog
  • update_arch được
  • update_blog_details
  • update_blog_option
  • update_blog_status
  • WPMU_UPDATE_BLOGS_DATE

Xác định các hằng số và các biến toàn cầu có thể được ghi đè, thường là trong wp-config.php, được tìm thấy trong tệp WP-Includes/ms-default-constants.php [kể từ 3.0.0].

  • ms_cookie_constants
  • ms_file_constants
  • ms_subdomain_constants
  • ms_upload_constants

API WordPress đa, được tìm thấy trong tệp WP-Includes/MS Factions.php [kể từ 3.0.0].

  • add_existing_user_to_blog
  • add_new_user_to_blog
  • add_user_to_blog
  • Check_upload_mimes
  • created_empty_blog
  • DOMAIN_EXISTS
  • Filter_SSL
  • FIX_PHPMAILER_MESSAGEID
  • Force_SSL_Content
  • get_active_blog_for_user
  • get_admin_users_for_domain
  • get_blogs_of_user
  • get_blog_count
  • get_blog_id_from_url
  • get_blog_permalink
  • get_blog_post
  • Get_Current_Site
  • get_dashboard_blog
  • get_dirsize
  • GET_IX_RECENT_POST_OF_USER
  • get_sitestats
  • get_space_allowed
  • get_space_used
  • get_upload_space_available
  • get_user_count
  • get_user_id_from_string [không dùng nữa]
  • Global_terms
  • Chèn_blog
  • install_blog
  • install_blog_defaults
  • is_blog_user [không dùng nữa]
  • is_email_address_unsafe
  • is_upload_space_available
  • is_user_option_local
  • is_user_spammy
  • Có lẽ_add_existing_user_to_blog
  • Có thể_redirect_404
  • Newblog_notify_siteadmin
  • newuser_notify_siteadmin
  • recurse_dirsize
  • Redirect_mu_dashboard [không phải là một hàm ??]
  • RELIRECT_THIS_SITE
  • remove_user_from_blog
  • Đăng nhập_nonce_check
  • Đăng nhập_nonce_fields
  • update_blog_public
  • Update_Posts_Count
  • upload_is_file_too_big
  • upload_is_user_over_quota
  • upload_size_limit_filter
  • users_can_register_signup_filter
  • Chào mừng_user_msg_filter
  • WordPressMu_WP_Mail_From [không phải là một hàm ??]
  • wp_get_sites
  • WPMU_Activate_Signup
  • wpmu_admin_redirect_add_updated_param [không dùng nữa]
  • wpmu_create_blog
  • WPMU_CREATE_USER
  • WPMU_LOG_NEW_REGISTRATION
  • wpmu_signup_blog
  • wpmu_signup_blog_notification
  • wpmu_signup_user
  • wpmu_signup_user_notification
  • wpmu_validate_blog_signup
  • wpmu_validate_user_signup
  • wpmu_welcome_notification
  • wpmu_welcome_user_notification

Các chức năng này là cần thiết để tải Multisite, được tìm thấy trong tệp WP-Includes/MS-load.php [kể từ 3.0.0].

  • GET_CURRENT_SITE_NAME [không dùng nữa]
  • is_subdomain_install
  • ms_not_installed
  • ms_site_check
  • WPMU_CURRENT_SITE [không dùng nữa]

Tài liệu tham khảo chính thức và không chính thức

  • Trình duyệt TRAC - Mã nguồn WordPress. Chọn 'Thẻ' để tìm mã nguồn phiên bản cụ thể hoặc 'Trunk' để xem mã nguồn phiên bản mới nhất.
  • PHPXREF cho WordPress - Tham chiếu chéo của các tệp, hàm và biến WordPress, dường như chỉ ra phiên bản được phát hành mới nhất.
  • Bảng lịch sử chức năng WordPress cho 3.0 trở lên - liệt kê từng chức năng WordPress bao gồm phiên bản mà nó được giới thiệu trong hoặc rơi vào. Planetozh khuyến nghị: "Xem công cụ lịch sử triển khai chức năng WordPress liên quan để biết thêm thông tin [và cho một công cụ có thể sử dụng hơn]"
  • Không tìm thấy trang-- Báo cáo biến WordPress- Danh sách các chức năng WordPress, liệt kê phiên bản của Php mỗi chức năng yêu cầu [và nếu có sẵn chức năng tương thích], những gì khác nhau/đối số trong các chức năng không được sử dụng và các chức năng/biến nào mà mỗi lớp chứa [và giá trị mặc định của chúng].
  • Bảng móc WordPress

Bài Viết Liên Quan

Chủ Đề