is_wp_error( mixed $thing ): bool
Checks whether the given variable is a WordPress Error.
Contents
Description
Returns whether $thing
is an instance of the WP_Error
class.
Parameters
-
$thing
mixed Required -
The variable to check.
Return
bool Whether the variable is an instance of WP_Error.
Source
File: wp-includes/load.php
.
View all references
function is_wp_error( $thing ) {
$is_wp_error = ( $thing instanceof WP_Error );
if ( $is_wp_error ) {
/**
* Fires when `is_wp_error()` is called and its parameter is an instance of `WP_Error`.
*
* @since 5.6.0
*
* @param WP_Error $thing The error object passed to `is_wp_error()`.
*/
do_action( 'is_wp_error_instance', $thing );
}
return $is_wp_error;
}
Hooks
-
do_action( 'is_wp_error_instance',
WP_Error $thing ) -
Fires when
is_wp_error()
is called and its parameter is an instance ofWP_Error
.
Related
Uses
Uses | Description |
---|---|
do_action() wp-includes/plugin.php |
Calls the callback functions that have been added to an action hook. |
Used By
Used By | Description |
---|---|
WP_Site_Health::check_for_page_caching() wp-admin/includes/class-wp-site-health.php |
Checks if site has page cache enabled or not. |
WP_Site_Health::get_page_cache_detail() wp-admin/includes/class-wp-site-health.php |
Gets page cache details. |
WP_Site_Health::get_test_page_cache() wp-admin/includes/class-wp-site-health.php |
Tests if a full page cache is available. |
wp_get_post_revisions_url() wp-includes/revision.php |
Returns the url for viewing and potentially restoring revisions of a given post. |
WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles() wp-includes/class-wp-theme-json-resolver.php |
Returns the custom post type that contains the user’s origin config for the active theme or a void array if none are found. |
WP_REST_Menu_Items_Controller::get_menu_id() wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php |
Gets the id of the menu that the given menu item belongs to. |
WP_REST_Menu_Items_Controller::get_nav_menu_item() wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php |
Gets the nav menu item, if the ID is valid. |
WP_REST_Menu_Items_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php |
Creates a single post. |
WP_REST_Menu_Items_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php |
Updates a single nav menu item. |
WP_REST_Menu_Items_Controller::delete_item() wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php |
Deletes a single menu item. |
WP_REST_Menu_Items_Controller::prepare_item_for_database() wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php |
Prepares a single post for create or update. |
WP_REST_Global_Styles_Controller::get_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php |
Checks if a given request has access to read a single global style. |
WP_REST_Global_Styles_Controller::get_item() wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php |
Returns the given global styles config. |
WP_REST_Global_Styles_Controller::update_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php |
Checks if a given request has access to write a single global styles config. |
WP_REST_Global_Styles_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php |
Updates a single global style config. |
WP_REST_Global_Styles_Controller::prepare_item_for_database() wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php |
Prepares a single global styles config for update. |
WP_REST_URL_Details_Controller::parse_url_details() wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php |
Retrieves the contents of the title tag from the HTML response. |
WP_REST_Menus_Controller::get_term() wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php |
Gets the term, if the ID is valid. |
WP_REST_Menus_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php |
Creates a single term in a taxonomy. |
WP_REST_Menus_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php |
Updates a single term from a taxonomy. |
WP_REST_Menus_Controller::delete_item() wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php |
Deletes a single term from a taxonomy. |
WP_REST_Edit_Site_Export_Controller::export() wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php |
Output a ZIP file with an export of the current templates and template parts from the site editor, and close the connection. |
_build_block_template_result_from_post() wp-includes/block-template-utils.php |
Builds a unified template object based a post Object. |
WP_REST_Widgets_Controller::get_items() wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php |
Retrieves a collection of widgets. |
WP_REST_Widgets_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php |
Creates a widget. |
WP_REST_Widgets_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php |
Updates an existing widget. |
WP_REST_Sidebars_Controller::get_items() wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php |
Retrieves the list of sidebars (active or inactive). |
WP_REST_Templates_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php |
Updates a single template. |
WP_REST_Templates_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php |
Creates a single template. |
WP_REST_Pattern_Directory_Controller::get_items() wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php |
Search and retrieve block patterns metadata |
WP_REST_Widget_Types_Controller::get_item() wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php |
Retrieves a single widget type from the collection. |
WP_REST_Widget_Types_Controller::get_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php |
Checks if a given request has access to read a widget type. |
wp_filter_wp_template_unique_post_slug() wp-includes/theme-templates.php |
Generates a unique slug for templates. |
get_block_editor_theme_styles() wp-includes/block-editor.php |
Creates an array of theme styles to load into the block editor. |
get_block_templates() wp-includes/block-template-utils.php |
Retrieves a list of unified template objects based on a query. |
get_block_template() wp-includes/block-template-utils.php |
Retrieves a single unified template object using its id. |
WP_REST_Application_Passwords_Controller::get_current_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Checks if a given request has access to get the currently used application password for a user. |
WP_REST_Application_Passwords_Controller::get_current_item() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Retrieves the application password being currently used for authentication of a user. |
wp_update_https_detection_errors() wp-includes/https-detection.php |
Runs a remote HTTPS request to detect whether HTTPS supported, and stores potential errors. |
rest_validate_integer_value_from_schema() wp-includes/rest-api.php |
Validates an integer value based on a schema. |
rest_validate_enum() wp-includes/rest-api.php |
Validates that the given value is a member of the JSON Schema “enum”. |
rest_validate_object_value_from_schema() wp-includes/rest-api.php |
Validates an object value based on a schema. |
rest_validate_array_value_from_schema() wp-includes/rest-api.php |
Validates an array value based on a schema. |
WP_REST_Server::serve_batch_request_v1() wp-includes/rest-api/class-wp-rest-server.php |
Serves the batch/v1 request. |
WP_REST_Server::respond_to_request() wp-includes/rest-api/class-wp-rest-server.php |
Dispatches the request to the callback handler. |
WP_REST_Application_Passwords_Controller::do_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Performs a permissions check for the request. |
WP_REST_Application_Passwords_Controller::prepare_item_for_response() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Prepares the application password for the REST response. |
WP_REST_Application_Passwords_Controller::get_application_password() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Gets the requested application password for a user. |
WP_REST_Application_Passwords_Controller::get_items_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Checks if a given request has access to get application passwords. |
WP_REST_Application_Passwords_Controller::get_items() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Retrieves a collection of application passwords. |
WP_REST_Application_Passwords_Controller::get_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Checks if a given request has access to get a specific application password. |
WP_REST_Application_Passwords_Controller::get_item() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Retrieves one application password from the collection. |
WP_REST_Application_Passwords_Controller::create_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Checks if a given request has access to create application passwords. |
WP_REST_Application_Passwords_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Creates an application password. |
WP_REST_Application_Passwords_Controller::update_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Checks if a given request has access to update application passwords. |
WP_REST_Application_Passwords_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Updates an application password. |
WP_REST_Application_Passwords_Controller::delete_items_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Checks if a given request has access to delete all application passwords for a user. |
WP_REST_Application_Passwords_Controller::delete_items() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Deletes all application passwords for a user. |
WP_REST_Application_Passwords_Controller::delete_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Checks if a given request has access to delete a specific application password for a user. |
WP_REST_Application_Passwords_Controller::delete_item() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php |
Deletes an application password for a user. |
WP_REST_Posts_Controller::check_status() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Checks whether the status is valid for the given post. |
WP_Image_Editor_Imagick::pdf_load_source() wp-includes/class-wp-image-editor-imagick.php |
Load the image produced by Ghostscript. |
wp_authenticate_application_password() wp-includes/user.php |
Authenticates the user using an application password. |
rest_find_any_matching_schema() wp-includes/rest-api.php |
Finds the matching schema among the “anyOf” schemas. |
rest_find_one_matching_schema() wp-includes/rest-api.php |
Finds the matching schema among the “oneOf” schemas. |
rest_application_password_check_errors() wp-includes/rest-api.php |
Checks for errors when using application password-based authentication. |
WP_REST_Block_Directory_Controller::get_items() wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php |
Search and retrieve blocks metadata |
WP_REST_Plugins_Controller::handle_plugin_status() wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php |
Handle updating a plugin’s status. |
WP_REST_Plugins_Controller::get_items() wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php |
Retrieves a collection of plugins. |
WP_REST_Plugins_Controller::get_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php |
Checks if a given request has access to get a specific plugin. |
WP_REST_Plugins_Controller::get_item() wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php |
Retrieves one plugin from the site. |
WP_REST_Plugins_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php |
Uploads a plugin and optionally activates it. |
WP_REST_Plugins_Controller::update_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php |
Checks if a given request has access to update a specific plugin. |
WP_REST_Plugins_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php |
Updates one plugin. |
WP_REST_Plugins_Controller::delete_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php |
Checks if a given request has access to delete a specific plugin. |
WP_REST_Plugins_Controller::delete_item() wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php |
Deletes one plugin from the site. |
WP_REST_Block_Types_Controller::get_item() wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php |
Retrieves a specific block type. |
WP_REST_Block_Types_Controller::get_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php |
Checks if a given request has access to read a block type. |
WP_REST_Attachments_Controller::edit_media_item() wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php |
Applies edits to a media item and creates a new attachment record. |
rest_filter_response_by_context() wp-includes/rest-api.php |
Filters the response to remove any fields not available in the given context. |
WP_Sitemaps_Taxonomies::get_url_list() wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php |
Gets a URL list for a taxonomy sitemap. |
Plugin_Installer_Skin::do_overwrite() wp-admin/includes/class-plugin-installer-skin.php |
Check if the plugin can be overwritten and output the HTML for overwriting a plugin on upload. |
Theme_Installer_Skin::do_overwrite() wp-admin/includes/class-theme-installer-skin.php |
Check if the theme can be overwritten and output the HTML for overwriting a theme on upload. |
Plugin_Upgrader::active_before() wp-admin/includes/class-plugin-upgrader.php |
Turns on maintenance mode before attempting to background update an active plugin. |
Plugin_Upgrader::active_after() wp-admin/includes/class-plugin-upgrader.php |
Turns off maintenance mode after upgrading an active plugin. |
WP_Site_Health::wp_cron_scheduled_check() wp-admin/includes/class-wp-site-health.php |
Runs the scheduled event to check and update the latest site health status for the website. |
WP_REST_Attachments_Controller::insert_attachment() wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php |
Inserts the attachment post in the database. Does not update the attachment meta. |
WP_Image_Editor_Imagick::make_subsize() wp-includes/class-wp-image-editor-imagick.php |
Create an image sub-size and return the image meta data value for it. |
WP_Image_Editor_GD::make_subsize() wp-includes/class-wp-image-editor-gd.php |
Create an image sub-size and return the image meta data value for it. |
WP_Image_Editor::maybe_exif_rotate() wp-includes/class-wp-image-editor.php |
Check if a JPEG image has EXIF Orientation tag and rotate it if needed. |
WP_Site_Health::has_late_cron() wp-admin/includes/class-wp-site-health.php |
Checks if any scheduled tasks are late. |
wp_create_image_subsizes() wp-admin/includes/image.php |
Creates image sub-sizes, adds the new data to the image meta |
_wp_make_subsizes() wp-admin/includes/image.php |
Low-level function to create image sub-sizes. |
WP_Recovery_Mode::handle_cookie() wp-includes/class-wp-recovery-mode.php |
Handles checking for the recovery mode cookie and validating it. |
WP_Recovery_Mode_Cookie_Service::validate_cookie() wp-includes/class-wp-recovery-mode-cookie-service.php |
Validates the recovery mode cookie. |
WP_Recovery_Mode_Cookie_Service::get_session_id_from_cookie() wp-includes/class-wp-recovery-mode-cookie-service.php |
Gets the session identifier from the cookie. |
WP_Recovery_Mode_Link_Service::handle_begin_link() wp-includes/class-wp-recovery-mode-link-service.php |
Enters recovery mode when the user hits wp-login.php with a valid recovery mode link. |
WP_Debug_Data::debug_data() wp-admin/includes/class-wp-debug-data.php |
Static function for generating site debug data when required. |
WP_Site_Health::get_test_scheduled_events() wp-admin/includes/class-wp-site-health.php |
Tests if scheduled events run as intended. |
WP_Site_Health::get_test_rest_availability() wp-admin/includes/class-wp-site-health.php |
Tests if the REST API is accessible. |
WP_Site_Health::has_missed_cron() wp-admin/includes/class-wp-site-health.php |
Checks if any scheduled tasks have been missed. |
WP_Site_Health::can_perform_loopback() wp-admin/includes/class-wp-site-health.php |
Runs a loopback test on the site. |
WP_Site_Health::get_test_dotorg_communication() wp-admin/includes/class-wp-site-health.php |
Tests if the site can communicate with WordPress.org. |
wp_insert_site() wp-includes/ms-site.php |
Inserts a new site into the database. |
wp_update_site() wp-includes/ms-site.php |
Updates a site in the database. |
_wp_die_process_input() wp-includes/functions.php |
Processes arguments passed to wp_die() consistently for its handlers. |
wp_check_php_version() wp-admin/includes/misc.php |
Checks if the user needs to update PHP. |
_wp_get_allowed_postdata() wp-admin/includes/post.php |
Returns only allowed post data fields. |
WP_REST_Search_Controller::get_items() wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php |
Retrieves a collection of search results. |
WP_REST_Search_Controller::prepare_item_for_response() wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php |
Prepares a single search result for response. |
WP_REST_Search_Controller::sanitize_subtypes() wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php |
Sanitizes the list of subtypes, to ensure only subtypes of the passed type are included. |
WP_REST_Themes_Controller::prepare_item_for_response() wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php |
Prepares a single theme output for response. |
WP_REST_Themes_Controller::sanitize_theme_status() wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php |
Sanitizes and validates the list of theme status. |
WP_REST_Autosaves_Controller::get_items_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php |
Checks if a given request has access to get autosaves. |
WP_REST_Autosaves_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php |
Creates, updates or deletes an autosave revision. |
WP_REST_Autosaves_Controller::get_items() wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php |
Gets a collection of autosaves using wp_get_post_autosave. |
WP_REST_Autosaves_Controller::create_post_autosave() wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php |
Creates autosave for the specified post. |
WP_Block_Type::prepare_attributes_for_render() wp-includes/class-wp-block-type.php |
Validates attributes against the current block schema, populating defaulted and missing values. |
register_and_do_post_meta_boxes() wp-admin/includes/meta-boxes.php |
Registers the default post meta boxes, and runs the |
wp_create_user_request() wp-includes/user.php |
Creates and logs a user request to perform a specific action. |
wp_privacy_process_personal_data_export_page() wp-admin/includes/privacy-tools.php |
Intercept personal data exporter page Ajax responses in order to assemble the personal data export file. |
WP_Privacy_Requests_Table::process_bulk_action() wp-admin/includes/class-wp-privacy-requests-table.php |
Process bulk actions. |
_wp_privacy_resend_request() wp-admin/includes/privacy-tools.php |
Resend an existing request and return the result. |
_wp_personal_data_handle_actions() wp-admin/includes/privacy-tools.php |
Handle list table actions. |
wp_ajax_wp_privacy_export_personal_data() wp-admin/includes/ajax-actions.php |
Ajax handler for exporting a user’s personal data. |
wp_ajax_wp_privacy_erase_personal_data() wp-admin/includes/ajax-actions.php |
Ajax handler for erasing personal data. |
wp_unschedule_hook() wp-includes/cron.php |
Unschedules all events attached to the hook. |
WP_Customize_Manager::handle_load_themes_request() wp-includes/class-wp-customize-manager.php |
Loads themes into the theme browsing/installation UI. |
wp_ajax_edit_theme_plugin_file() wp-admin/includes/ajax-actions.php |
Ajax handler for editing a theme or plugin file. |
get_term_parents_list() wp-includes/category-template.php |
Retrieves term parents with separator. |
WP_Widget_Media::update() wp-includes/widgets/class-wp-widget-media.php |
Sanitizes the widget form values as they are saved. |
wp_ajax_get_community_events() wp-admin/includes/ajax-actions.php |
Handles Ajax requests for community events |
WP_Community_Events::get_events() wp-admin/includes/class-wp-community-events.php |
Gets data about events near a particular location. |
rest_sanitize_value_from_schema() wp-includes/rest-api.php |
Sanitize a value based on a schema. |
rest_validate_value_from_schema() wp-includes/rest-api.php |
Validate a value based on a schema. |
rest_parse_request_arg() wp-includes/rest-api.php |
Parse a request argument based on details registered to the route. |
WP_Customize_Manager::_publish_changeset_values() wp-includes/class-wp-customize-manager.php |
Publishes the values of a changeset. |
WP_Customize_Manager::save_changeset_post() wp-includes/class-wp-customize-manager.php |
Saves the post for the loaded changeset. |
WP_Customize_Manager::import_theme_starter_content() wp-includes/class-wp-customize-manager.php |
Imports theme starter content into the customized state. |
WP_Customize_Manager::changeset_data() wp-includes/class-wp-customize-manager.php |
Gets changeset data. |
wp_update_custom_css_post() wp-includes/theme.php |
Updates the |
WP_REST_Meta_Fields::prepare_value() wp-includes/rest-api/fields/class-wp-rest-meta-fields.php |
Prepares a meta value for output. |
WP_REST_Meta_Fields::update_value() wp-includes/rest-api/fields/class-wp-rest-meta-fields.php |
Updates meta values. |
WP_REST_Users_Controller::delete_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php |
Checks if a given request has access delete a user. |
WP_REST_Users_Controller::delete_item() wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php |
Deletes a single user. |
WP_REST_Users_Controller::get_item() wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php |
Retrieves a single user. |
WP_REST_Users_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php |
Creates a single user. |
WP_REST_Users_Controller::update_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php |
Checks if a given request has access to update a user. |
WP_REST_Users_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php |
Updates a single user. |
WP_REST_Users_Controller::get_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php |
Checks if a given request has access to read a user. |
WP_REST_Revisions_Controller::get_item() wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php |
Retrieves one revision from the collection. |
WP_REST_Revisions_Controller::delete_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php |
Checks if a given request has access to delete a revision. |
WP_REST_Revisions_Controller::delete_item() wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php |
Deletes a single revision. |
WP_REST_Attachments_Controller::upload_from_file() wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php |
Handles an upload via multipart/form-data ($_FILES). |
WP_REST_Revisions_Controller::get_items_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php |
Checks if a given request has access to get revisions. |
WP_REST_Revisions_Controller::get_items() wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php |
Gets a collection of revisions. |
WP_REST_Attachments_Controller::upload_from_data() wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php |
Handles an upload via raw POST data. |
WP_REST_Attachments_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php |
Creates a single attachment. |
WP_REST_Attachments_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php |
Updates a single attachment. |
WP_REST_Attachments_Controller::create_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php |
Checks if a given request has access to create an attachment. |
WP_REST_Settings_Controller::prepare_value() wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php |
Prepares a value for output based off a schema array. |
WP_REST_Settings_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php |
Updates settings for the settings object. |
WP_REST_Terms_Controller::delete_item() wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php |
Deletes a single term from a taxonomy. |
WP_REST_Terms_Controller::get_item() wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php |
Gets a single term from a taxonomy. |
WP_REST_Terms_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php |
Creates a single term in a taxonomy. |
WP_REST_Terms_Controller::update_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php |
Checks if a request has access to update the specified term. |
WP_REST_Terms_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php |
Updates a single term from a taxonomy. |
WP_REST_Terms_Controller::delete_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php |
Checks if a request has access to delete the specified term. |
WP_REST_Terms_Controller::get_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php |
Checks if a request has access to read or edit the specified term. |
WP_REST_Posts_Controller::prepare_links() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Prepares links for the request. |
WP_REST_Posts_Controller::sanitize_post_statuses() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Sanitizes and validates the list of post statuses, including whether the user can query private statuses. |
WP_REST_Posts_Controller::handle_terms() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Updates the post’s terms from a REST request. |
WP_REST_Posts_Controller::prepare_item_for_database() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Prepares a single post for create or update. |
WP_REST_Posts_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Creates a single post. |
WP_REST_Posts_Controller::update_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Checks if a given request has access to update a post. |
WP_REST_Posts_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Updates a single post. |
WP_REST_Posts_Controller::delete_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Checks if a given request has access to delete a post. |
WP_REST_Posts_Controller::delete_item() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Deletes a single post. |
WP_REST_Posts_Controller::get_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Checks if a given request has access to read a post. |
WP_REST_Posts_Controller::get_item() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php |
Retrieves a single post. |
WP_REST_Controller::update_additional_fields_for_object() wp-includes/rest-api/endpoints/class-wp-rest-controller.php |
Updates the values of additional fields added to a data object. |
WP_REST_Comments_Controller::check_comment_author_email() wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php |
Checks a comment author email for validity. |
WP_REST_Comments_Controller::update_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php |
Checks if a given REST request has access to update a comment. |
WP_REST_Comments_Controller::update_item() wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php |
Updates a comment. |
WP_REST_Comments_Controller::delete_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php |
Checks if a given request has access to delete a comment. |
WP_REST_Comments_Controller::delete_item() wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php |
Deletes a comment. |
WP_REST_Comments_Controller::get_item_permissions_check() wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php |
Checks if a given request has access to read the comment. |
WP_REST_Comments_Controller::get_item() wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php |
Retrieves a comment. |
WP_REST_Comments_Controller::create_item() wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php |
Creates a comment. |
WP_Customize_Nav_Menus::insert_auto_draft_post() wp-includes/class-wp-customize-nav-menus.php |
Adds a new |
WP_Customize_Nav_Menus::ajax_insert_auto_draft_post() wp-includes/class-wp-customize-nav-menus.php |
Ajax handler for adding a new auto-draft post. |
WP_Customize_Nav_Menu_Item_Setting::get_original_title() wp-includes/customize/class-wp-customize-nav-menu-item-setting.php |
Get original title. |
WP_Customize_Manager::validate_setting_values() wp-includes/class-wp-customize-manager.php |
Validates setting values. |
WP_Customize_Manager::prepare_setting_validity_for_js() wp-includes/class-wp-customize-manager.php |
Prepares setting validity for exporting to the client (JS). |
WP_Customize_Setting::validate() wp-includes/class-wp-customize-setting.php |
Validates an input. |
WP_Ajax_Upgrader_Skin::error() wp-admin/includes/class-wp-ajax-upgrader-skin.php |
Stores an error message about the upgrade. |
WP_Ajax_Upgrader_Skin::feedback() wp-admin/includes/class-wp-ajax-upgrader-skin.php |
Stores a message about the upgrade. |
wp_ajax_delete_plugin() wp-admin/includes/ajax-actions.php |
Ajax handler for deleting a plugin. |
wp_ajax_install_theme() wp-admin/includes/ajax-actions.php |
Ajax handler for installing a theme. |
wp_ajax_update_theme() wp-admin/includes/ajax-actions.php |
Ajax handler for updating a theme. |
wp_ajax_delete_theme() wp-admin/includes/ajax-actions.php |
Ajax handler for deleting a theme. |
wp_ajax_install_plugin() wp-admin/includes/ajax-actions.php |
Ajax handler for installing a plugin. |
WP_Site::get_instance() wp-includes/class-wp-site.php |
Retrieves a site from the database by its ID. |
wp_authenticate_email_password() wp-includes/user.php |
Authenticates a user using the email and password. |
wp_get_comment_fields_max_lengths() wp-includes/comment.php |
Retrieves the maximum character lengths for the comment form fields. |
wp_queue_posts_for_term_meta_lazyload() wp-includes/post.php |
Queues posts for lazy-loading of term meta. |
WP_Network::get_instance() wp-includes/class-wp-network.php |
Retrieves a network from the database by its ID. |
rest_ensure_response() wp-includes/rest-api.php |
Ensures a REST response is a response object (for consistency). |
wp_remote_retrieve_cookies() wp-includes/http.php |
Retrieve only the cookies from the raw response. |
WP_REST_Request::sanitize_params() wp-includes/rest-api/class-wp-rest-request.php |
Sanitizes (where possible) the params on the request. |
WP_REST_Request::has_valid_params() wp-includes/rest-api/class-wp-rest-request.php |
Checks whether this request is valid according to its attributes. |
WP_REST_Server::dispatch() wp-includes/rest-api/class-wp-rest-server.php |
Matches the request to a callback and call it. |
WP_REST_Server::serve_request() wp-includes/rest-api/class-wp-rest-server.php |
Handles serving a REST API request. |
get_password_reset_key() wp-includes/user.php |
Creates, stores, then returns a password reset key for user. |
wp_handle_comment_submission() wp-includes/comment.php |
Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form. |
WP_Customize_Nav_Menu_Setting::update() wp-includes/customize/class-wp-customize-nav-menu-setting.php |
Create/update the nav_menu term for this setting. |
WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item() wp-includes/customize/class-wp-customize-nav-menu-item-setting.php |
Get the value emulated into a WP_Post and set up as a nav_menu_item. |
WP_Customize_Nav_Menu_Item_Setting::update() wp-includes/customize/class-wp-customize-nav-menu-item-setting.php |
Creates/updates the nav_menu_item post for this setting. |
WP_Customize_Nav_Menus::ajax_load_available_items() wp-includes/class-wp-customize-nav-menus.php |
Ajax handler for loading available menu items. |
WP_Customize_Nav_Menus::load_available_items_query() wp-includes/class-wp-customize-nav-menus.php |
Performs the post_type and taxonomy queries for loading available menu items. |
WP_Links_List_Table::column_categories() wp-admin/includes/class-wp-links-list-table.php |
Handles the link categories column output. |
wp_ajax_crop_image() wp-admin/includes/ajax-actions.php |
Ajax handler for cropping an image. |
wpdb::get_col_length() wp-includes/class-wpdb.php |
Retrieves the maximum string length allowed in a given column. |
wpdb::process_field_lengths() wp-includes/class-wpdb.php |
For string fields, records the maximum string length that field can safely save. |
wpdb::strip_invalid_text_for_column() wp-includes/class-wpdb.php |
Strips any invalid characters from the string for a given table and column. |
wpdb::get_col_charset() wp-includes/class-wpdb.php |
Retrieves the character set for the given column. |
wpdb::strip_invalid_text_from_query() wp-includes/class-wpdb.php |
Strips any invalid characters from the query. |
wpdb::process_field_charsets() wp-includes/class-wpdb.php |
Adds field charsets to field/value/format arrays generated by wpdb::process_field_formats(). |
get_avatar_data() wp-includes/link-template.php |
Retrieves default data about the avatar. |
wp_ajax_update_plugin() wp-admin/includes/ajax-actions.php |
Ajax handler for updating a plugin. |
WP_Tax_Query::get_sql_for_clause() wp-includes/class-wp-tax-query.php |
Generates SQL JOIN and WHERE clauses for a “first-order” query clause. |
wp_can_install_language_pack() wp-admin/includes/translation-install.php |
Check if WordPress has access to the filesystem without asking for credentials. |
translations_api() wp-admin/includes/translation-install.php |
Retrieve translations from WordPress Translation API. |
wp_get_available_translations() wp-admin/includes/translation-install.php |
Get available translations from the WordPress.org API. |
wp_download_language_pack() wp-admin/includes/translation-install.php |
Download a language pack. |
retrieve_password() wp-includes/user.php |
Handles sending a password retrieval email to a user. |
login_header() wp-login.php |
Output the login page header. |
show_user_form() wp-signup.php |
Displays the fields for the new user account registration form. |
signup_another_blog() wp-signup.php |
Shows a form for returning users to sign up for another site. |
validate_another_blog_signup() wp-signup.php |
Validates a new site sign-up for an existing user. |
signup_user() wp-signup.php |
Shows a form for a visitor to sign up for a new user account. |
signup_blog() wp-signup.php |
Shows a form for a user or visitor to sign up for a new site. |
show_blog_form() wp-signup.php |
Generates and displays the Sign-up and Create Site forms. |
network_step1() wp-admin/includes/network.php |
Prints step 1 for Network installation process. |
network_step2() wp-admin/includes/network.php |
Prints step 2 for Network installation process. |
WP_Automatic_Updater::update() wp-admin/includes/class-wp-automatic-updater.php |
Updates an item, if appropriate. |
WP_Automatic_Updater::after_core_update() wp-admin/includes/class-wp-automatic-updater.php |
If we tried to perform a core update, check if we should send an email, and if we need to avoid processing future updates. |
WP_Automatic_Updater::send_email() wp-admin/includes/class-wp-automatic-updater.php |
Sends an email upon the completion or failure of a background core update. |
WP_Automatic_Updater::send_debug_email() wp-admin/includes/class-wp-automatic-updater.php |
Prepares and sends an email of a full log of background update results, useful for debugging and geekery. |
Language_Pack_Upgrader::check_package() wp-admin/includes/class-language-pack-upgrader.php |
Checks that the package source contains .mo and .po files. |
Theme_Upgrader::current_before() wp-admin/includes/class-theme-upgrader.php |
Turn on maintenance mode before attempting to upgrade the active theme. |
Theme_Upgrader::current_after() wp-admin/includes/class-theme-upgrader.php |
Turn off maintenance mode after upgrading the active theme. |
Theme_Upgrader::delete_old_theme() wp-admin/includes/class-theme-upgrader.php |
Delete the old theme during an upgrade. |
Core_Upgrader::upgrade() wp-admin/includes/class-core-upgrader.php |
Upgrade WordPress core. |
Theme_Upgrader::check_parent_theme_filter() wp-admin/includes/class-theme-upgrader.php |
Check if a child theme is being installed and we need to install its parent. |
Theme_Upgrader::install() wp-admin/includes/class-theme-upgrader.php |
Install a theme package. |
Theme_Upgrader::upgrade() wp-admin/includes/class-theme-upgrader.php |
Upgrade a theme. |
Theme_Upgrader::bulk_upgrade() wp-admin/includes/class-theme-upgrader.php |
Upgrade several themes at once. |
Theme_Upgrader::check_package() wp-admin/includes/class-theme-upgrader.php |
Checks that the package source contains a valid theme. |
Plugin_Upgrader::bulk_upgrade() wp-admin/includes/class-plugin-upgrader.php |
Bulk upgrade several plugins at once. |
Plugin_Upgrader::check_package() wp-admin/includes/class-plugin-upgrader.php |
Checks that the source package contains a valid plugin. |
Plugin_Upgrader::deactivate_plugin_before_upgrade() wp-admin/includes/class-plugin-upgrader.php |
Deactivates a plugin before it is upgraded. |
Plugin_Upgrader::delete_old_plugin() wp-admin/includes/class-plugin-upgrader.php |
Deletes the old plugin during an upgrade. |
Plugin_Upgrader::install() wp-admin/includes/class-plugin-upgrader.php |
Install a plugin package. |
Plugin_Upgrader::upgrade() wp-admin/includes/class-plugin-upgrader.php |
Upgrade a plugin. |
WP_Upgrader::fs_connect() wp-admin/includes/class-wp-upgrader.php |
Connect to the filesystem. |
WP_Upgrader::download_package() wp-admin/includes/class-wp-upgrader.php |
Download a package. |
WP_Upgrader::unpack_package() wp-admin/includes/class-wp-upgrader.php |
Unpack a compressed package file. |
WP_Upgrader::install_package() wp-admin/includes/class-wp-upgrader.php |
Install a package. |
WP_Upgrader::run() wp-admin/includes/class-wp-upgrader.php |
Run an upgrade/installation. |
delete_theme() wp-admin/includes/theme.php |
Removes a theme. |
get_theme_feature_list() wp-admin/includes/theme.php |
Retrieves list of WordPress theme features (aka theme tags). |
themes_api() wp-admin/includes/theme.php |
Retrieves theme installer pages from the WordPress.org Themes API. |
install_themes_feature_list() wp-admin/includes/theme-install.php |
Retrieves the list of WordPress theme features (aka theme tags). |
install_theme_information() wp-admin/includes/theme-install.php |
Displays theme information in dialog box form. |
Automatic_Upgrader_Skin::feedback() wp-admin/includes/class-automatic-upgrader-skin.php |
Stores a message about the upgrade. |
Theme_Upgrader_Skin::after() wp-admin/includes/class-theme-upgrader-skin.php |
Action to perform following a single theme update. |
Theme_Installer_Skin::after() wp-admin/includes/class-theme-installer-skin.php |
Action to perform following a single theme install. |
Plugin_Installer_Skin::after() wp-admin/includes/class-plugin-installer-skin.php |
Action to perform following a plugin install. |
Bulk_Upgrader_Skin::after() wp-admin/includes/class-bulk-upgrader-skin.php | |
Bulk_Upgrader_Skin::error() wp-admin/includes/class-bulk-upgrader-skin.php | |
WP_Upgrader_Skin::decrement_update_count() wp-admin/includes/class-wp-upgrader-skin.php |
Output JavaScript that calls function to decrement the update counts. |
Plugin_Upgrader_Skin::after() wp-admin/includes/class-plugin-upgrader-skin.php |
Action to perform following a single plugin update. |
WP_Upgrader_Skin::error() wp-admin/includes/class-wp-upgrader-skin.php | |
stream_preview_image() wp-admin/includes/image-edit.php |
Streams image in post to browser, along with enqueued changes in |
wp_save_image() wp-admin/includes/image-edit.php |
Saves image to post, along with enqueued changes in |
wp_stream_image() wp-admin/includes/image-edit.php |
Streams image in WP_Image_Editor to browser. |
heartbeat_autosave() wp-admin/includes/misc.php |
Performs autosave with heartbeat. |
show_message() wp-admin/includes/misc.php |
Displays the given administration message. |
populate_network() wp-admin/includes/schema.php |
Populate network settings. |
wp_insert_category() wp-admin/includes/taxonomy.php |
Updates an existing Category or creates a new Category. |
get_terms_to_edit() wp-admin/includes/taxonomy.php |
Gets comma-separated list of terms available to edit for the given post ID. |
WP_Theme_Install_List_Table::prepare_items() wp-admin/includes/class-wp-theme-install-list-table.php | |
get_core_checksums() wp-admin/includes/update.php |
Gets and caches the checksums for the given version of WordPress. |
wp_generate_attachment_metadata() wp-admin/includes/image.php |
Generates attachment meta data and create image sub-sizes for images. |
wp_crop_image() wp-admin/includes/image.php |
Crops an image to a given size. |
plugins_api() wp-admin/includes/plugin-install.php |
Retrieves plugin installer pages from the WordPress.org Plugins API. |
install_popular_tags() wp-admin/includes/plugin-install.php |
Retrieves popular WordPress plugin tags. |
install_dashboard() wp-admin/includes/plugin-install.php |
Displays the Featured tab of Add Plugins screen. |
install_plugin_information() wp-admin/includes/plugin-install.php |
Displays plugin information in dialog box form. |
wp_check_browser_version() wp-admin/includes/dashboard.php |
Checks if the user needs a browser update. |
wp_dashboard_plugins_output() wp-admin/includes/deprecated.php |
Display plugins text for the WordPress news widget. |
wp_dashboard_rss_control() wp-admin/includes/dashboard.php |
The RSS dashboard widget control. |
wp_check_mysql_version() wp-admin/includes/upgrade.php |
Checks the version of the installed MySQL binary. |
activate_plugin() wp-admin/includes/plugin.php |
Attempts activation of plugin in a “sandbox” and redirects on success. |
activate_plugins() wp-admin/includes/plugin.php |
Activates multiple plugins. |
delete_plugins() wp-admin/includes/plugin.php |
Removes directory and files of a plugin for a list of plugins. |
validate_active_plugins() wp-admin/includes/plugin.php |
Validates active plugins. |
WP_Plugin_Install_List_Table::prepare_items() wp-admin/includes/class-wp-plugin-install-list-table.php | |
media_upload_type_form() wp-admin/includes/media.php |
Outputs the legacy media upload form for a given media type. |
media_upload_form() wp-admin/includes/media.php |
Outputs the legacy media upload form. |
wp_media_upload_handler() wp-admin/includes/media.php |
Handles the process of uploading media. |
media_sideload_image() wp-admin/includes/media.php |
Downloads an image from the specified URL, saves it as an attachment, and optionally attaches it to a post. |
media_handle_upload() wp-admin/includes/media.php |
Saves a file submitted from a POST request and create an attachment post for it. |
media_handle_sideload() wp-admin/includes/media.php |
Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload() . |
wp_create_post_autosave() wp-admin/includes/post.php |
Creates autosave data for the specified post from |
post_preview() wp-admin/includes/post.php |
Saves a draft or manually autosaves for the purpose of showing a post preview. |
wp_write_post() wp-admin/includes/post.php |
Creates a new post from the “Write Post” form using |
write_post() wp-admin/includes/post.php |
Calls wp_write_post() and handles the errors. |
wp_ajax_query_themes() wp-admin/includes/ajax-actions.php |
Ajax handler for getting themes from themes_api() . |
edit_post() wp-admin/includes/post.php |
Updates an existing post with values provided in |
bulk_edit_posts() wp-admin/includes/post.php |
Processes the post data for the bulk editing of posts. |
wp_ajax_upload_attachment() wp-admin/includes/ajax-actions.php |
Ajax handler for uploading attachments |
wp_ajax_wp_fullscreen_save_post() wp-admin/includes/ajax-actions.php |
Ajax handler for saving posts from the fullscreen editor. |
wp_ajax_add_menu_item() wp-admin/includes/ajax-actions.php |
Ajax handler for adding a menu item. |
wp_ajax_add_meta() wp-admin/includes/ajax-actions.php |
Ajax handler for adding meta. |
wp_ajax_add_user() wp-admin/includes/ajax-actions.php |
Ajax handler for adding a user. |
wp_ajax_inline_save_tax() wp-admin/includes/ajax-actions.php |
Ajax handler for quick edit saving for a term. |
_wp_ajax_add_hierarchical_term() wp-admin/includes/ajax-actions.php |
Ajax handler for adding a hierarchical term. |
wp_ajax_delete_tag() wp-admin/includes/ajax-actions.php |
Ajax handler for deleting a tag. |
wp_ajax_delete_link() wp-admin/includes/ajax-actions.php |
Ajax handler for deleting a link. |
wp_ajax_dim_comment() wp-admin/includes/ajax-actions.php |
Ajax handler to dim a comment. |
wp_ajax_add_link_category() wp-admin/includes/ajax-actions.php |
Ajax handler for adding a link category. |
wp_ajax_add_tag() wp-admin/includes/ajax-actions.php |
Ajax handler to add a tag. |
wp_ajax_get_tagcloud() wp-admin/includes/ajax-actions.php |
Ajax handler for getting a tagcloud. |
wp_ajax_replyto_comment() wp-admin/includes/ajax-actions.php |
Ajax handler for replying to a comment. |
wp_ajax_edit_comment() wp-admin/includes/ajax-actions.php |
Ajax handler for editing a comment. |
update_core() wp-admin/includes/update-core.php |
Upgrades the core of WordPress. |
Walker_Nav_Menu_Edit::start_el() wp-admin/includes/class-walker-nav-menu-edit.php |
Start the element output. |
wp_nav_menu_update_menu_items() wp-admin/includes/nav-menu.php |
Saves nav menu items. |
_wp_ajax_menu_quick_search() wp-admin/includes/nav-menu.php |
Prints the appropriate response to a menu quick search. |
wp_nav_menu_item_post_type_meta_box() wp-admin/includes/nav-menu.php |
Displays a meta box for a post type menu item. |
wp_nav_menu_item_taxonomy_meta_box() wp-admin/includes/nav-menu.php |
Displays a meta box for a taxonomy menu item. |
wp_get_nav_menu_to_edit() wp-admin/includes/nav-menu.php |
Returns the menu formatted to edit. |
request_filesystem_credentials() wp-admin/includes/file.php |
Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem. |
download_url() wp-admin/includes/file.php |
Downloads a URL to a local temporary file using the WordPress HTTP API. |
unzip_file() wp-admin/includes/file.php |
Unzips a specified ZIP file to a location on the filesystem via the WordPress Filesystem Abstraction. |
copy_dir() wp-admin/includes/file.php |
Copies a directory from one location to another via the WordPress Filesystem Abstraction. |
WP_Filesystem() wp-admin/includes/file.php |
Initializes and connects the WordPress Filesystem Abstraction classes. |
register_importer() wp-admin/includes/import.php |
Registers importer for WordPress. |
Custom_Image_Header::ajax_header_crop() wp-admin/includes/class-custom-image-header.php |
Gets attachment uploaded by Media Manager, crops it, then saves it as a new object. Returns JSON-encoded object details. |
wp_credits() wp-admin/includes/credits.php |
Retrieve the contributor credits. |
Custom_Image_Header::step_2() wp-admin/includes/class-custom-image-header.php |
Display second step of custom header image page. |
Custom_Image_Header::step_3() wp-admin/includes/class-custom-image-header.php |
Display third step of custom header image page. |
do_core_upgrade() wp-admin/update-core.php |
Upgrade WordPress core display. |
map_meta_cap() wp-includes/capabilities.php |
Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked. |
WP_Customize_Manager::save() wp-includes/class-wp-customize-manager.php |
Handles customize_save WP Ajax request to save/update a changeset. |
WP_Customize_Manager::post_value() wp-includes/class-wp-customize-manager.php |
Returns the sanitized value for a given setting from the current customized state. |
wp_schedule_event() wp-includes/cron.php |
Schedules a recurring event. |
wp_reschedule_event() wp-includes/cron.php |
Reschedules a recurring event. |
wp_unschedule_event() wp-includes/cron.php |
Unschedules a previously scheduled event. |
wp_clear_scheduled_hook() wp-includes/cron.php |
Unschedules all events attached to the hook with the specified arguments. |
spawn_cron() wp-includes/cron.php |
Sends a request to run cron through HTTP request that doesn’t halt page loading. |
wp_schedule_single_event() wp-includes/cron.php |
Schedules an event to run only once. |
get_the_term_list() wp-includes/category-template.php |
Retrieves a post’s terms as a list with specified format. |
the_terms() wp-includes/category-template.php |
Displays the terms for a post in a list. |
has_term() wp-includes/category-template.php |
Checks if the current post has any of given terms. |
wp_tag_cloud() wp-includes/category-template.php |
Displays a tag cloud. |
the_tags() wp-includes/category-template.php |
Displays the tags for a post. |
term_description() wp-includes/category-template.php |
Retrieves term description. |
get_the_terms() wp-includes/category-template.php |
Retrieves the terms of the taxonomy that are attached to the post. |
get_category_link() wp-includes/category-template.php |
Retrieves category link URL. |
get_the_category() wp-includes/category-template.php |
Retrieves post categories. |
get_the_category_by_ID() wp-includes/category-template.php |
Retrieves category name based on category ID. |
switch_theme() wp-includes/theme.php |
Switches the theme. |
sanitize_option() wp-includes/formatting.php |
Sanitizes various option values based on the nature of the option. |
get_avatar() wp-includes/pluggable.php |
Retrieves the avatar |
wp_new_user_notification() wp-includes/pluggable.php |
Emails login credentials to a newly-registered user. |
wp_authenticate() wp-includes/pluggable.php |
Authenticates a user, confirming the login credentials are valid. |
image_resize() wp-includes/deprecated.php |
Scale down an image to fit a particular size and save a new copy of the image. |
user_pass_ok() wp-includes/deprecated.php |
Check that the user login name and password is correct. |
get_category_children() wp-includes/deprecated.php |
Retrieve category children list separated before and after the term IDs. |
WP_Theme::errors() wp-includes/class-wp-theme.php |
Returns errors property. |
WP_Theme::__construct() wp-includes/class-wp-theme.php |
Constructor for WP_Theme. |
WP_Query::get_queried_object() wp-includes/class-wp-query.php |
Retrieves the currently queried object. |
get_cat_name() wp-includes/category.php |
Retrieves the name of a category from its ID. |
_make_cat_compat() wp-includes/category.php |
Updates category structure to old pre-2.3 from new taxonomy structure. |
WP_Image_Editor_Imagick::resize() wp-includes/class-wp-image-editor-imagick.php |
Resizes current image. |
WP_Image_Editor_Imagick::multi_resize() wp-includes/class-wp-image-editor-imagick.php |
Create multiple smaller images from a single source. |
WP_Image_Editor_Imagick::crop() wp-includes/class-wp-image-editor-imagick.php |
Crops Image. |
WP_Image_Editor_Imagick::rotate() wp-includes/class-wp-image-editor-imagick.php |
Rotates current image counter-clockwise by $angle. |
WP_Image_Editor_Imagick::save() wp-includes/class-wp-image-editor-imagick.php |
Saves current image to file. |
WP_Image_Editor_Imagick::_save() wp-includes/class-wp-image-editor-imagick.php | |
get_categories() wp-includes/category.php |
Retrieves a list of category objects. |
get_category() wp-includes/category.php |
Retrieves category data given a category ID or category object. |
get_category_by_path() wp-includes/category.php |
Retrieves a category based on URL containing the category slug. |
WP_Image_Editor_Imagick::load() wp-includes/class-wp-image-editor-imagick.php |
Loads image from $this->file into new Imagick Object. |
WP_Image_Editor_Imagick::set_quality() wp-includes/class-wp-image-editor-imagick.php |
Sets Image Compression quality on a 1-100% scale. |
wp_set_wpdb_vars() wp-includes/load.php |
Set the database table prefix and the format specifiers for database table columns. |
WP_Http::_dispatch_request() wp-includes/class-wp-http.php |
Dispatches a HTTP request to a supporting transport. |
WP_Http::request() wp-includes/class-wp-http.php |
Send an HTTP request to a URI. |
url_is_accessable_via_ssl() wp-includes/deprecated.php |
Determines if the URL can be accessed over SSL. |
wp_send_json_error() wp-includes/functions.php |
Sends a JSON response back to an Ajax request, indicating failure. |
wp_remote_fopen() wp-includes/functions.php |
HTTP request for URI to retrieve content. |
wp_get_http_headers() wp-includes/functions.php |
Retrieves HTTP Headers from URL. |
wp_get_http() wp-includes/deprecated.php |
Perform a HTTP HEAD or GET request. |
WP_Widget_RSS::widget() wp-includes/widgets/class-wp-widget-rss.php |
Outputs the content for the current RSS widget instance. |
wp_widget_rss_output() wp-includes/widgets.php |
Display the RSS entries in a list. |
wp_widget_rss_process() wp-includes/widgets.php |
Process RSS feed widget data and optionally retrieve feed items. |
WP_SimplePie_File::__construct() wp-includes/class-wp-simplepie-file.php |
Constructor. |
WP_Tax_Query::clean_query() wp-includes/class-wp-tax-query.php |
Validates a single query. |
WP_Tax_Query::transform_query() wp-includes/class-wp-tax-query.php |
Transforms a single query, from one field to another. |
wp_get_term_taxonomy_parent_id() wp-includes/taxonomy.php |
Returns the term’s parent’s term ID. |
get_object_term_cache() wp-includes/taxonomy.php |
Retrieves the cached term objects for the given object ID. |
_get_term_children() wp-includes/taxonomy.php |
Gets the subset of $terms that are descendants of $term_id. |
get_term_link() wp-includes/taxonomy.php |
Generates a permalink for a taxonomy term archive. |
is_object_in_term() wp-includes/taxonomy.php |
Determines if the given object is associated with any of the given terms. |
get_ancestors() wp-includes/taxonomy.php |
Gets an array of ancestor IDs for a given object. |
wp_unique_term_slug() wp-includes/taxonomy.php |
Makes term slug unique, if it isn’t already. |
wp_update_term() wp-includes/taxonomy.php |
Updates term based on arguments provided. |
wp_set_object_terms() wp-includes/taxonomy.php |
Creates term and taxonomy relationships. |
wp_remove_object_terms() wp-includes/taxonomy.php |
Removes term(s) associated with a given object. |
wp_insert_term() wp-includes/taxonomy.php |
Adds a new term to the database. |
wp_delete_term() wp-includes/taxonomy.php |
Removes a term from the database. |
get_term_by() wp-includes/taxonomy.php |
Gets all term data from database by term field and data. |
get_term_field() wp-includes/taxonomy.php |
Gets sanitized term field. |
get_term_to_edit() wp-includes/taxonomy.php |
Sanitizes term for editing. |
term_exists() wp-includes/taxonomy.php |
Determines whether a taxonomy term exists. |
register_taxonomy() wp-includes/taxonomy.php |
Creates or modifies a taxonomy object. |
get_term() wp-includes/taxonomy.php |
Gets all term data from database by term ID. |
get_adjacent_post() wp-includes/link-template.php |
Retrieves the adjacent post. |
get_term_feed_link() wp-includes/link-template.php |
Retrieves the feed link for a term. |
get_edit_term_link() wp-includes/link-template.php |
Retrieves the URL for editing a given term. |
get_permalink() wp-includes/link-template.php |
Retrieves the full permalink for the current post or post ID. |
WP_Ajax_Response::add() wp-includes/class-wp-ajax-response.php |
Appends data to an XML response based on given arguments. |
wp_version_check() wp-includes/update.php |
Checks WordPress version against the newest version. |
wp_update_plugins() wp-includes/update.php |
Checks for available updates to plugins based on the latest versions hosted on WordPress.org. |
wp_update_themes() wp-includes/update.php |
Checks for available updates to themes based on the latest versions hosted on WordPress.org. |
wp_remote_retrieve_headers() wp-includes/http.php |
Retrieve only the headers from the raw response. |
wp_remote_retrieve_header() wp-includes/http.php |
Retrieve a single header by name from the raw response. |
wp_remote_retrieve_response_code() wp-includes/http.php |
Retrieve only the response code from the raw response. |
wp_remote_retrieve_response_message() wp-includes/http.php |
Retrieve only the response message from the raw response. |
wp_remote_retrieve_body() wp-includes/http.php |
Retrieve only the body from the raw response. |
WP_oEmbed::fetch() wp-includes/class-wp-oembed.php |
Connects to a oEmbed provider and returns the result. |
wp_admin_bar_edit_menu() wp-includes/admin-bar.php |
Provides an edit link for posts and terms. |
wp_update_user() wp-includes/user.php |
Updates a user in the database. |
register_new_user() wp-includes/user.php |
Handles registering a new user. |
wp_signon() wp-includes/user.php |
Authenticates and logs a user in with ‘remember’ capability. |
wp_authenticate_username_password() wp-includes/user.php |
Authenticates a user, confirming the username and password are valid. |
wp_login() wp-includes/pluggable-deprecated.php |
Checks a users login information and logs them in if it checks out. This function is deprecated. |
WP_Image_Editor_GD::resize() wp-includes/class-wp-image-editor-gd.php |
Resizes current image. |
WP_Image_Editor_GD::multi_resize() wp-includes/class-wp-image-editor-gd.php |
Create multiple smaller images from a single source. |
WP_Image_Editor_GD::save() wp-includes/class-wp-image-editor-gd.php |
Saves current in-memory image to file. |
wp_nav_menu() wp-includes/nav-menu-template.php |
Displays a navigation menu. |
get_post_class() wp-includes/post-template.php |
Retrieves an array of the class names for the post container element. |
get_body_class() wp-includes/post-template.php |
Retrieves an array of the class names for the body element. |
wp_get_image_editor() wp-includes/media.php |
Returns a WP_Image_Editor instance and loads file into it. |
image_make_intermediate_size() wp-includes/media.php |
Resizes an image to make a thumbnail or intermediate size. |
wp_get_post_parent_id() wp-includes/post.php |
Returns the ID of the post’s parent. |
wp_update_post() wp-includes/post.php |
Updates a post with new post data. |
redirect_canonical() wp-includes/canonical.php |
Redirects incoming links to the proper URL based on the site url. |
_wp_put_post_revision() wp-includes/revision.php |
Inserts post data into the posts table as a post revision. |
wp_restore_post_revision() wp-includes/revision.php |
Restores a post to the specified revision. |
maybe_add_existing_user_to_blog() wp-includes/ms-functions.php |
Adds a new user to a blog by visiting /newbloguser/{key}/. |
add_new_user_to_blog() wp-includes/ms-functions.php |
Adds a newly created user to the appropriate blog |
insert_blog() wp-includes/ms-deprecated.php |
Store basic site info in the blogs table. |
wpmu_activate_signup() wp-includes/ms-functions.php |
Activates a signup. |
wpmu_create_user() wp-includes/ms-functions.php |
Creates a user. |
wpmu_create_blog() wp-includes/ms-functions.php |
Creates a site. |
get_active_blog_for_user() wp-includes/ms-functions.php |
Gets one of a user’s active blogs. |
add_user_to_blog() wp-includes/ms-functions.php |
Adds a user to a blog, along with specifying the user’s role. |
WP_HTTP_IXR_Client::query() wp-includes/class-wp-http-ixr-client.php | |
get_bookmark_field() wp-includes/bookmark.php |
Retrieves single bookmark data item or field. |
get_post_format_link() wp-includes/post-formats.php |
Returns a link to a post format index. |
update_blog_status() wp-includes/ms-blogs.php |
Updates a blog details field. |
update_blog_details() wp-includes/ms-blogs.php |
Updates the details for a blog and the blogs table for a given blog ID. |
wp_setup_nav_menu_item() wp-includes/nav-menu.php |
Decorates a menu item object with the shared navigation menu item properties. |
is_nav_menu_item() wp-includes/nav-menu.php |
Determines whether the given ID is a nav menu item. |
wp_delete_nav_menu() wp-includes/nav-menu.php |
Deletes a navigation menu. |
wp_update_nav_menu_object() wp-includes/nav-menu.php |
Saves the properties of a menu or create a new menu with those properties. |
wp_update_nav_menu_item() wp-includes/nav-menu.php |
Saves the properties of a menu item or create a new one. |
wp_get_nav_menu_object() wp-includes/nav-menu.php |
Returns a navigation menu object. |
is_nav_menu() wp-includes/nav-menu.php |
Determines whether the given ID is a navigation menu. |
_fetch_remote_file() wp-includes/rss.php |
Retrieve URL headers and content using WP HTTP Request API. |
wp_xmlrpc_server::pingback_ping() wp-includes/class-wp-xmlrpc-server.php |
Retrieves a pingback and registers it. |
wp_xmlrpc_server::mw_editPost() wp-includes/class-wp-xmlrpc-server.php |
Edits a post. |
wp_xmlrpc_server::blogger_newPost() wp-includes/class-wp-xmlrpc-server.php |
Creates a new post. |
wp_xmlrpc_server::mw_newPost() wp-includes/class-wp-xmlrpc-server.php |
Creates a new post. |
wp_xmlrpc_server::wp_editComment() wp-includes/class-wp-xmlrpc-server.php |
Edits a comment. |
wp_xmlrpc_server::wp_newComment() wp-includes/class-wp-xmlrpc-server.php |
Creates a new comment. |
wp_xmlrpc_server::wp_newCategory() wp-includes/class-wp-xmlrpc-server.php |
Creates a new category. |
wp_xmlrpc_server::wp_newTerm() wp-includes/class-wp-xmlrpc-server.php |
Creates a new term. |
wp_xmlrpc_server::wp_editTerm() wp-includes/class-wp-xmlrpc-server.php |
Edits a term. |
wp_xmlrpc_server::wp_deleteTerm() wp-includes/class-wp-xmlrpc-server.php |
Deletes a term. |
wp_xmlrpc_server::wp_getTerm() wp-includes/class-wp-xmlrpc-server.php |
Retrieves a term. |
wp_xmlrpc_server::wp_getTerms() wp-includes/class-wp-xmlrpc-server.php |
Retrieves all terms for a taxonomy. |
wp_xmlrpc_server::wp_editProfile() wp-includes/class-wp-xmlrpc-server.php |
Edits user’s profile. |
wp_xmlrpc_server::_insert_post() wp-includes/class-wp-xmlrpc-server.php |
Helper method for wp_newPost() and wp_editPost(), containing shared logic. |
wp_xmlrpc_server::login() wp-includes/class-wp-xmlrpc-server.php |
Logs user in. |
WP_Customize_Widgets::wp_ajax_update_widget() wp-includes/class-wp-customize-widgets.php |
Updates widget settings asynchronously. |
trackback() wp-includes/comment.php |
Sends a Trackback. |
wp_update_comment() wp-includes/comment.php |
Updates an existing comment in the database. |
discover_pingback_server_uri() wp-includes/comment.php |
Finds a pingback server URI based on the given URL. |
wp_new_comment() wp-includes/comment.php |
Adds a new comment to the database. |
register_meta() wp-includes/meta.php |
Registers a meta key. |
_WP_Editors::editor_settings() wp-includes/class-wp-editor.php |
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example
example with wp_insert_user
The WP_Error class:
https://developer.wordpress.org/reference/classes/wp_error/