返回介绍

is_wp_error()

发布于 2017-09-11 01:32:34 字数 31672 浏览 818 评论 0 收藏 0

is_wp_error( mixed $thing )

Check whether variable is a WordPress Error.


description

Returns true if $thing is an object of the WP_Error class.


参数

$thing

(mixed) (Required) Check if unknown variable is a WP_Error object.


返回值

(bool) True, if WP_Error. False, if not WP_Error.


源代码

File: wp-includes/load.php

function is_wp_error( $thing ) {
	return ( $thing instanceof WP_Error );
}

更新日志

Versiondescription
2.1.0Introduced.

相关函数

Used By

  • wp-includes/category-template.php: get_term_parents_list()
  • wp-includes/widgets/class-wp-widget-media.php: WP_Widget_Media::update()
  • wp-admin/includes/ajax-actions.php: wp_ajax_get_community_events()
  • wp-admin/includes/class-wp-community-events.php: WP_Community_Events::get_events()
  • wp-includes/rest-api.php: rest_validate_value_from_schema()
  • wp-includes/rest-api.php: rest_parse_request_arg()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::_publish_changeset_values()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::save_changeset_post()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::import_theme_starter_content()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::changeset_data()
  • wp-includes/theme.php: wp_update_custom_css_post()
  • wp-includes/rest-api/fields/class-wp-rest-meta-fields.php: WP_REST_Meta_Fields::update_value()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::delete_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::create_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::update_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::update_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::get_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::delete_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::get_items_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::get_items()
  • wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::create_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::update_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::create_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::get_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::create_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::update_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::update_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::delete_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::get_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::sanitize_post_statuses()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::handle_terms()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::prepare_item_for_database()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::create_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::update_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::update_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::delete_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::get_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::get_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::update_additional_fields_for_object()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::check_comment_author_email()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::update_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::update_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::delete_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::get_item_permissions_check()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::get_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::create_item()
  • wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::insert_auto_draft_post()
  • wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::ajax_insert_auto_draft_post()
  • wp-includes/customize/class-wp-customize-nav-menu-item-setting.php: WP_Customize_Nav_Menu_Item_Setting::get_original_title()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::validate_setting_values()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::prepare_setting_validity_for_js()
  • wp-includes/class-wp-customize-setting.php: WP_Customize_Setting::validate()
  • wp-admin/includes/class-wp-ajax-upgrader-skin.php: WP_Ajax_Upgrader_Skin::error()
  • wp-admin/includes/class-wp-ajax-upgrader-skin.php: WP_Ajax_Upgrader_Skin::feedback()
  • wp-admin/includes/ajax-actions.php: wp_ajax_delete_plugin()
  • wp-admin/includes/ajax-actions.php: wp_ajax_install_theme()
  • wp-admin/includes/ajax-actions.php: wp_ajax_update_theme()
  • wp-admin/includes/ajax-actions.php: wp_ajax_delete_theme()
  • wp-admin/includes/ajax-actions.php: wp_ajax_install_plugin()
  • wp-includes/class-wp-site.php: WP_Site::get_instance()
  • wp-includes/user.php: wp_authenticate_email_password()
  • wp-includes/comment.php: wp_get_comment_fields_max_lengths()
  • wp-includes/class-wp-network.php: WP_Network::get_instance()
  • wp-includes/rest-api.php: rest_ensure_response()
  • wp-includes/http.php: wp_remote_retrieve_cookies()
  • wp-includes/rest-api/class-wp-rest-request.php: WP_REST_Request::sanitize_params()
  • wp-includes/rest-api/class-wp-rest-request.php: WP_REST_Request::has_valid_params()
  • wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::dispatch()
  • wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::serve_request()
  • wp-includes/user.php: get_password_reset_key()
  • wp-includes/comment.php: wp_handle_comment_submission()
  • wp-includes/customize/class-wp-customize-nav-menu-setting.php: WP_Customize_Nav_Menu_Setting::update()
  • wp-includes/customize/class-wp-customize-nav-menu-item-setting.php: WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()
  • wp-includes/customize/class-wp-customize-nav-menu-item-setting.php: WP_Customize_Nav_Menu_Item_Setting::update()
  • wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::ajax_load_available_items()
  • wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::load_available_items_query()
  • wp-admin/includes/class-wp-links-list-table.php: WP_Links_List_Table::column_categories()
  • wp-admin/includes/ajax-actions.php: wp_ajax_crop_image()
  • wp-includes/wp-db.php: wpdb::get_col_length()
  • wp-includes/wp-db.php: wpdb::process_field_lengths()
  • wp-includes/wp-db.php: wpdb::strip_invalid_text_for_column()
  • wp-includes/wp-db.php: wpdb::get_col_charset()
  • wp-includes/wp-db.php: wpdb::strip_invalid_text_from_query()
  • wp-includes/wp-db.php: wpdb::process_field_charsets()
  • wp-includes/link-template.php: get_avatar_data()
  • wp-admin/includes/ajax-actions.php: wp_ajax_update_plugin()
  • wp-admin/includes/class-wp-press-this.php: WP_Press_This::add_category()
  • wp-admin/includes/class-wp-press-this.php: WP_Press_This::fetch_源代码_html()
  • wp-admin/includes/class-wp-press-this.php: WP_Press_This::源代码_data_fetch_fallback()
  • wp-admin/includes/class-wp-press-this.php: WP_Press_This::tags_html()
  • wp-admin/includes/class-wp-press-this.php: WP_Press_This::side_load_images()
  • wp-admin/includes/class-wp-press-this.php: WP_Press_This::save_post()
  • wp-includes/class-wp-tax-query.php: WP_Tax_Query::get_sql_for_clause()
  • wp-admin/includes/translation-install.php: wp_can_install_language_pack()
  • wp-admin/includes/translation-install.php: translations_api()
  • wp-admin/includes/translation-install.php: wp_get_available_translations()
  • wp-admin/includes/translation-install.php: wp_download_language_pack()
  • wp-login.php: retrieve_password()
  • wp-signup.php: show_user_form()
  • wp-signup.php: signup_another_blog()
  • wp-signup.php: validate_another_blog_signup()
  • wp-signup.php: signup_user()
  • wp-signup.php: signup_blog()
  • wp-signup.php: show_blog_form()
  • wp-admin/includes/network.php: network_step1()
  • wp-admin/includes/network.php: network_step2()
  • wp-admin/includes/class-wp-automatic-updater.php: WP_Automatic_Updater::update()
  • wp-admin/includes/class-wp-automatic-updater.php: WP_Automatic_Updater::after_core_update()
  • wp-admin/includes/class-wp-automatic-updater.php: WP_Automatic_Updater::send_email()
  • wp-admin/includes/class-wp-automatic-updater.php: WP_Automatic_Updater::send_debug_email()
  • wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::current_before()
  • wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::current_after()
  • wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::delete_old_theme()
  • wp-admin/includes/class-language-pack-upgrader.php: Language_Pack_Upgrader::check_package()
  • wp-admin/includes/class-core-upgrader.php: Core_Upgrader::upgrade()
  • wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::check_package()
  • wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::deactivate_plugin_before_upgrade()
  • wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::delete_old_plugin()
  • wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::check_parent_theme_filter()
  • wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::install()
  • wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::upgrade()
  • wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::check_package()
  • wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::fs_connect()
  • wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::download_package()
  • wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::unpack_package()
  • wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::install_package()
  • wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::run()
  • wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::install()
  • wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::upgrade()
  • wp-admin/includes/theme.php: delete_theme()
  • wp-admin/includes/theme.php: get_theme_feature_list()
  • wp-admin/includes/theme.php: themes_api()
  • wp-admin/includes/theme-install.php: install_themes_feature_list()
  • wp-admin/includes/theme-install.php: install_theme_information()
  • wp-admin/includes/class-theme-upgrader-skin.php: Theme_Upgrader_Skin::after()
  • wp-admin/includes/class-automatic-upgrader-skin.php: Automatic_Upgrader_Skin::feedback()
  • wp-admin/includes/class-plugin-installer-skin.php: Plugin_Installer_Skin::after()
  • wp-admin/includes/class-theme-installer-skin.php: Theme_Installer_Skin::after()
  • wp-admin/includes/class-bulk-upgrader-skin.php: Bulk_Upgrader_Skin::after()
  • wp-admin/includes/class-wp-upgrader-skin.php: WP_Upgrader_Skin::decrement_update_count()
  • wp-admin/includes/class-plugin-upgrader-skin.php: Plugin_Upgrader_Skin::after()
  • wp-admin/includes/class-bulk-upgrader-skin.php: Bulk_Upgrader_Skin::error()
  • wp-admin/includes/class-wp-upgrader-skin.php: WP_Upgrader_Skin::error()
  • wp-admin/includes/image-edit.php: stream_preview_image()
  • wp-admin/includes/image-edit.php: wp_save_image()
  • wp-admin/includes/image-edit.php: wp_stream_image()
  • wp-admin/includes/misc.php: heartbeat_autosave()
  • wp-admin/includes/misc.php: show_message()
  • wp-admin/includes/schema.php: populate_network()
  • wp-admin/includes/taxonomy.php: wp_insert_category()
  • wp-admin/includes/taxonomy.php: get_terms_to_edit()
  • wp-admin/includes/class-wp-theme-install-list-table.php: WP_Theme_Install_List_Table::prepare_items()
  • wp-admin/includes/update.php: get_core_checksums()
  • wp-admin/includes/image.php: wp_generate_attachment_metadata()
  • wp-admin/includes/dashboard.php: wp_check_browser_version()
  • wp-admin/includes/plugin-install.php: plugins_api()
  • wp-admin/includes/plugin-install.php: install_popular_tags()
  • wp-admin/includes/plugin-install.php: install_dashboard()
  • wp-admin/includes/plugin-install.php: install_plugin_information()
  • wp-admin/includes/image.php: wp_crop_image()
  • wp-admin/includes/dashboard.php: wp_dashboard_rss_control()
  • wp-admin/includes/deprecated.php: wp_dashboard_plugins_output()
  • wp-admin/includes/upgrade.php: wp_check_mysql_version()
  • wp-admin/includes/plugin.php: activate_plugin()
  • wp-admin/includes/plugin.php: activate_plugins()
  • wp-admin/includes/plugin.php: delete_plugins()
  • wp-admin/includes/plugin.php: validate_active_plugins()
  • wp-admin/includes/class-wp-plugin-install-list-table.php: WP_Plugin_Install_List_Table::prepare_items()
  • wp-admin/includes/media.php: media_upload_type_form()
  • wp-admin/includes/media.php: media_upload_form()
  • wp-admin/includes/media.php: wp_media_upload_handler()
  • wp-admin/includes/media.php: media_sideload_image()
  • wp-admin/includes/media.php: media_handle_upload()
  • wp-admin/includes/media.php: media_handle_sideload()
  • wp-admin/includes/post.php: wp_create_post_autosave()
  • wp-admin/includes/post.php: post_preview()
  • wp-admin/includes/post.php: wp_write_post()
  • wp-admin/includes/post.php: write_post()
  • wp-admin/includes/ajax-actions.php: wp_ajax_query_themes()
  • wp-admin/includes/post.php: edit_post()
  • wp-admin/includes/post.php: bulk_edit_posts()
  • wp-admin/includes/ajax-actions.php: wp_ajax_upload_attachment()
  • wp-admin/includes/ajax-actions.php: wp_ajax_wp_fullscreen_save_post()
  • wp-admin/includes/ajax-actions.php: wp_ajax_add_menu_item()
  • wp-admin/includes/ajax-actions.php: wp_ajax_add_meta()
  • wp-admin/includes/ajax-actions.php: wp_ajax_add_user()
  • wp-admin/includes/ajax-actions.php: wp_ajax_inline_save_tax()
  • wp-admin/includes/ajax-actions.php: _wp_ajax_add_hierarchical_term()
  • wp-admin/includes/ajax-actions.php: wp_ajax_delete_tag()
  • wp-admin/includes/ajax-actions.php: wp_ajax_delete_link()
  • wp-admin/includes/ajax-actions.php: wp_ajax_dim_comment()
  • wp-admin/includes/ajax-actions.php: wp_ajax_add_link_category()
  • wp-admin/includes/ajax-actions.php: wp_ajax_add_tag()
  • wp-admin/includes/ajax-actions.php: wp_ajax_get_tagcloud()
  • wp-admin/includes/update-core.php: update_core()
  • wp-admin/includes/nav-menu.php: wp_nav_menu_update_menu_items()
  • wp-admin/includes/class-walker-nav-menu-edit.php: Walker_Nav_Menu_Edit::start_el()
  • wp-admin/includes/nav-menu.php: _wp_ajax_menu_quick_search()
  • wp-admin/includes/nav-menu.php: wp_nav_menu_item_post_type_meta_box()
  • wp-admin/includes/nav-menu.php: wp_nav_menu_item_taxonomy_meta_box()
  • wp-admin/includes/nav-menu.php: wp_get_nav_menu_to_edit()
  • wp-admin/includes/file.php: request_filesystem_credentials()
  • wp-admin/includes/file.php: download_url()
  • wp-admin/includes/file.php: unzip_file()
  • wp-admin/includes/file.php: copy_dir()
  • wp-admin/includes/file.php: WP_Filesystem()
  • wp-admin/includes/import.php: register_importer()
  • wp-admin/custom-header.php: Custom_Image_Header::ajax_header_crop()
  • wp-admin/includes/credits.php: wp_credits()
  • wp-admin/custom-header.php: Custom_Image_Header::step_2()
  • wp-admin/custom-header.php: Custom_Image_Header::step_3()
  • wp-admin/update-core.php: do_core_upgrade()
  • wp-includes/capabilities.php: map_meta_cap()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::save()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::post_value()
  • wp-includes/category-template.php: get_the_term_list()
  • wp-includes/category-template.php: the_terms()
  • wp-includes/category-template.php: has_term()
  • wp-includes/category-template.php: wp_tag_cloud()
  • wp-includes/category-template.php: get_tag_link()
  • wp-includes/category-template.php: the_tags()
  • wp-includes/category-template.php: term_description()
  • wp-includes/category-template.php: get_the_terms()
  • wp-includes/category-template.php: get_category_link()
  • wp-includes/category-template.php: get_the_category()
  • wp-includes/category-template.php: get_the_category_by_ID()
  • wp-includes/formatting.php: sanitize_option()
  • wp-includes/pluggable.php: get_avatar()
  • wp-includes/pluggable.php: wp_authenticate()
  • wp-includes/deprecated.php: image_resize()
  • wp-includes/deprecated.php: user_pass_ok()
  • wp-includes/deprecated.php: get_category_children()
  • wp-includes/class-wp-theme.php: WP_Theme::errors()
  • wp-includes/class-wp-query.php: WP_Query::get_queried_object()
  • wp-includes/category.php: get_cat_name()
  • wp-includes/category.php: _make_cat_compat()
  • wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::resize()
  • wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::multi_resize()
  • wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::crop()
  • wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::rotate()
  • wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::save()
  • wp-includes/category.php: get_categories()
  • wp-includes/category.php: get_category()
  • wp-includes/category.php: get_category_by_path()
  • wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::load()
  • wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::set_quality()
  • wp-includes/load.php: wp_set_wpdb_vars()
  • wp-includes/class-http.php: WP_Http::_dispatch_request()
  • wp-includes/class-http.php: WP_Http::request()
  • wp-includes/deprecated.php: url_is_accessable_via_ssl()
  • wp-includes/functions.php: wp_send_json_error()
  • wp-includes/functions.php: _default_wp_die_handler()
  • wp-includes/functions.php: wp_remote_fopen()
  • wp-includes/deprecated.php: wp_get_http()
  • wp-includes/functions.php: wp_get_http_headers()
  • wp-includes/widgets/class-wp-widget-rss.php: WP_Widget_RSS::widget()
  • wp-includes/widgets.php: wp_widget_rss_output()
  • wp-includes/widgets.php: wp_widget_rss_process()
  • wp-includes/class-wp-simplepie-file.php: WP_SimplePie_File::__construct()
  • wp-includes/taxonomy.php: wp_get_term_taxonomy_parent_id()
  • wp-includes/class-wp-tax-query.php: WP_Tax_Query::clean_query()
  • wp-includes/taxonomy.php: get_object_term_cache()
  • wp-includes/taxonomy.php: _get_term_children()
  • wp-includes/taxonomy.php: get_term_link()
  • wp-includes/taxonomy.php: is_object_in_term()
  • wp-includes/taxonomy.php: get_ancestors()
  • wp-includes/taxonomy.php: wp_unique_term_slug()
  • wp-includes/taxonomy.php: wp_update_term()
  • wp-includes/taxonomy.php: wp_insert_term()
  • wp-includes/taxonomy.php: wp_set_object_terms()
  • wp-includes/taxonomy.php: wp_remove_object_terms()
  • wp-includes/taxonomy.php: wp_delete_term()
  • wp-includes/taxonomy.php: get_term_by()
  • wp-includes/taxonomy.php: get_term_field()
  • wp-includes/taxonomy.php: get_term_to_edit()
  • wp-includes/taxonomy.php: get_term()
  • wp-includes/link-template.php: get_adjacent_post()
  • wp-includes/link-template.php: get_term_feed_link()
  • wp-includes/link-template.php: get_edit_term_link()
  • wp-includes/link-template.php: get_permalink()
  • wp-includes/link-template.php: get_post_permalink()
  • wp-includes/class-wp-ajax-response.php: WP_Ajax_Response::add()
  • wp-includes/update.php: wp_version_check()
  • wp-includes/update.php: wp_update_plugins()
  • wp-includes/update.php: wp_update_themes()
  • wp-includes/http.php: wp_remote_retrieve_headers()
  • wp-includes/http.php: wp_remote_retrieve_header()
  • wp-includes/http.php: wp_remote_retrieve_response_code()
  • wp-includes/http.php: wp_remote_retrieve_response_message()
  • wp-includes/http.php: wp_remote_retrieve_body()
  • wp-includes/class-oembed.php: WP_oEmbed::fetch()
  • wp-includes/admin-bar.php: wp_admin_bar_edit_menu()
  • wp-includes/user.php: wp_update_user()
  • wp-includes/user.php: register_new_user()
  • wp-includes/user.php: wp_signon()
  • wp-includes/user.php: wp_authenticate_username_password()
  • wp-includes/pluggable-deprecated.php: wp_login()
  • wp-includes/class-wp-image-editor-gd.php: WP_Image_Editor_GD::resize()
  • wp-includes/class-wp-image-editor-gd.php: WP_Image_Editor_GD::multi_resize()
  • wp-includes/class-wp-image-editor-gd.php: WP_Image_Editor_GD::save()
  • wp-includes/nav-menu-template.php: wp_nav_menu()
  • wp-includes/post-template.php: get_post_class()
  • wp-includes/post-template.php: get_body_class()
  • wp-includes/media.php: wp_get_image_editor()
  • wp-includes/media.php: image_make_intermediate_size()
  • wp-includes/post.php: wp_get_post_parent_id()
  • wp-includes/canonical.php: redirect_canonical()
  • wp-includes/revision.php: _wp_put_post_revision()
  • wp-includes/revision.php: wp_restore_post_revision()
  • wp-includes/ms-functions.php: maybe_add_existing_user_to_blog()
  • wp-includes/ms-functions.php: wpmu_activate_signup()
  • wp-includes/ms-functions.php: wpmu_create_user()
  • wp-includes/class-wp-http-ixr-client.php: WP_HTTP_IXR_Client::query()
  • wp-includes/bookmark.php: get_bookmark_field()
  • wp-includes/post-formats.php: get_post_format_link()
  • wp-includes/nav-menu.php: wp_setup_nav_menu_item()
  • wp-includes/nav-menu.php: is_nav_menu_item()
  • wp-includes/nav-menu.php: wp_delete_nav_menu()
  • wp-includes/nav-menu.php: wp_update_nav_menu_object()
  • wp-includes/nav-menu.php: wp_update_nav_menu_item()
  • wp-includes/nav-menu.php: wp_get_nav_menu_items()
  • wp-includes/nav-menu.php: wp_get_nav_menu_object()
  • wp-includes/nav-menu.php: is_nav_menu()
  • wp-includes/rss.php: _fetch_remote_file()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_editPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_newPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_newPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editComment()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newComment()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newCategory()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newTerm()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editTerm()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deleteTerm()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTerm()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTerms()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editProfile()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::_insert_post()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::login()
  • wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::wp_ajax_update_widget()
  • wp-includes/comment.php: trackback()
  • wp-includes/comment.php: wp_new_comment()
  • wp-includes/comment.php: discover_pingback_server_uri()
  • wp-includes/class-wp-editor.php: _WP_Editors::editor_settings()
  • Show 345 more used by Hide more used by

User Contributed Notes

  1. Skip to note content You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note Contributed by Codex

    Example

    
    if ( is_wp_error( $result ) ) {
    	$error_string = $result->get_error_message();
    	echo '<div id="message" class="error"><p>' . $error_string . '</p></div>';
    }
    
    
  2. The WP_Error class:
    https://developer.wordpress.org/reference/classes/wp_error/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文