WP_Error::__construct( string|int $code = '', string $message = '', mixed $data = '' )
Initialize the error.
Description
If $code
is empty, the other parameters will be ignored. When $code
is not empty, $message
will be used even if it is empty. The $data
parameter will be used only if it is not empty.
Though the class is constructed with a single error code and message, multiple codes can be added using the add()
method.
Parameters
- $code
-
(Optional) Error code
Default value: ''
- $message
-
(Optional) Error message
Default value: ''
- $data
-
(Optional) Error data.
Default value: ''
Source
File: wp-includes/class-wp-error.php
public function __construct( $code = '', $message = '', $data = '' ) {
if ( empty($code) )
return;
$this->errors[$code][] = $message;
if ( ! empty($data) )
$this->error_data[$code] = $data;
}
Related
Used By
Used By | Description |
---|---|
wp-signup.php: signup_blog() |
Setup the new site signup |
wp-signup.php: show_blog_form() |
Generates and displays the Signup and Create Site forms |
wp-signup.php: show_user_form() |
Display user registration form |
wp-signup.php: signup_another_blog() |
Allow returning users to sign up for another site |
wp-signup.php: signup_user() |
Setup the new user signup process |
wp-login.php: retrieve_password() |
Handles sending password retrieval email to user. |
wp-login.php: login_header() |
Output the login page header. |
wp-includes/customize/class-wp-customize-custom-css-setting.php: WP_Customize_Custom_CSS_Setting::validate() |
Validate CSS. |
wp-includes/customize/class-wp-customize-nav-menu-item-setting.php: WP_Customize_Nav_Menu_Item_Setting::sanitize() |
Sanitize an input. |
wp-includes/customize/class-wp-customize-nav-menu-item-setting.php: WP_Customize_Nav_Menu_Item_Setting::update() |
Creates/updates the nav_menu_item post for this setting. |
wp-includes/class-wp-image-editor-gd.php: WP_Image_Editor_GD::load() |
Loads image from $this->file into new GD Resource. |
wp-includes/class-wp-image-editor-gd.php: WP_Image_Editor_GD::resize() |
Resizes current image. |
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::crop() |
Crops Image. |
wp-includes/class-wp-image-editor-gd.php: WP_Image_Editor_GD::rotate() |
Rotates current image counter-clockwise by $angle. |
wp-includes/class-wp-image-editor-gd.php: WP_Image_Editor_GD::flip() |
Flips current image. |
wp-includes/class-wp-image-editor-gd.php: WP_Image_Editor_GD::_save() | |
wp-includes/rest-api/fields/class-wp-rest-meta-fields.php: WP_REST_Meta_Fields::delete_meta_value() |
Deletes a meta value for an object. |
wp-includes/rest-api/fields/class-wp-rest-meta-fields.php: WP_REST_Meta_Fields::update_multi_meta_value() |
Updates multiple meta values for an object. |
wp-includes/rest-api/fields/class-wp-rest-meta-fields.php: WP_REST_Meta_Fields::update_meta_value() |
Updates a meta value for an object. |
wp-includes/rest-api/class-wp-rest-request.php: WP_REST_Request::parse_json_params() |
Parses the JSON parameters. |
wp-includes/rest-api/class-wp-rest-request.php: WP_REST_Request::sanitize_params() |
Sanitizes (where possible) the params on the request. |
wp-includes/rest-api/class-wp-rest-request.php: WP_REST_Request::has_valid_params() |
Checks whether this request is valid according to its attributes. |
wp-includes/rest-api/class-wp-rest-response.php: WP_REST_Response::as_error() |
Retrieves a WP_Error object from the response. |
wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::serve_request() |
Handles serving an API request. |
wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::dispatch() |
Matches the request to a callback and call it. |
wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::get_namespace_index() |
Retrieves the index for a namespace. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::get_items_permissions_check() |
Checks if a given request has access to read comments. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::get_comment() |
Get the comment, if the ID is valid. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::get_item_permissions_check() |
Checks if a given request has access to read the comment. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::create_item_permissions_check() |
Checks if a given request has access to create a comment. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::create_item() |
Creates a comment. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::update_item_permissions_check() |
Checks if a given REST request has access to update a comment. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::update_item() |
Updates a comment. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::delete_item_permissions_check() |
Checks if a given request has access to delete a comment. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::delete_item() |
Deletes a comment. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::prepare_item_for_database() |
Prepares a single comment to be inserted into the database. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::get_items_permissions_check() |
Checks if a request has access to read terms in the specified taxonomy. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::get_term() |
Get the term, if the ID is valid. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::get_item_permissions_check() |
Checks if a request has access to read or edit the specified term. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::create_item_permissions_check() |
Checks if a request has access to create a term. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::create_item() |
Creates a single term in a taxonomy. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::update_item_permissions_check() |
Checks if a request has access to update the specified term. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::update_item() |
Updates a single term from a taxonomy. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::delete_item_permissions_check() |
Checks if a request has access to delete the specified term. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::delete_item() |
Deletes a single term from a taxonomy. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::check_reassign() |
Checks for a valid value for the reassign parameter when deleting users. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_items_permissions_check() |
Permissions check for getting all users. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_user() |
Get the user, if the ID is valid. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_item_permissions_check() |
Checks if a given request has access to read a user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_current_item() |
Retrieves the current user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::create_item_permissions_check() |
Checks if a given request has access create users. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::create_item() |
Creates a single user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::update_item_permissions_check() |
Checks if a given request has access to update a user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::update_item() |
Updates a single user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::delete_item_permissions_check() |
Checks if a given request has access delete a user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::delete_item() |
Deletes a single user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::check_role_update() |
Determines if the current user is allowed to make the desired roles change. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::check_username() |
Check a username for the REST API. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::check_user_password() |
Check a user password for the REST API. |
wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::get_parent() |
Get the parent post, if the ID is valid. |
wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::get_items_permissions_check() |
Checks if a given request has access to get revisions. |
wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::get_revision() |
Get the revision, if the ID is valid. |
wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::delete_item() |
Deletes a single revision. |
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php: WP_REST_Taxonomies_Controller::get_items_permissions_check() |
Checks whether a given request has permission to read taxonomies. |
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php: WP_REST_Taxonomies_Controller::get_item_permissions_check() |
Checks if a given request has access to a taxonomy. |
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php: WP_REST_Taxonomies_Controller::get_item() |
Retrieves a specific taxonomy. |
wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php: WP_REST_Settings_Controller::update_item() |
Updates settings for the settings object. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::create_item_permissions_check() |
Checks if a given request has access to create an attachment. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::create_item() |
Creates a single attachment. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::update_item() |
Updates a single attachment. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::upload_from_data() |
Handles an upload via raw POST data. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::upload_from_file() |
Handles an upload via multipart/form-data ($_FILES). |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::check_upload_size() |
Determine if uploaded file exceeds space quota on multisite. |
wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php: WP_REST_Post_Types_Controller::get_items_permissions_check() |
Checks whether a given request has permission to read types. |
wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php: WP_REST_Post_Types_Controller::get_item() |
Retrieves a specific post type. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::sanitize_post_statuses() |
Sanitizes and validates the list of post statuses, including whether the user can query private statuses. |
wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php: WP_REST_Post_Statuses_Controller::get_items_permissions_check() |
Checks whether a given request has permission to read post statuses. |
wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php: WP_REST_Post_Statuses_Controller::get_item_permissions_check() |
Checks if a given request has access to read a post status. |
wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php: WP_REST_Post_Statuses_Controller::get_item() |
Retrieves a specific post status. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::get_items_permissions_check() |
Checks if a given request has access to get items. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::get_items() |
Retrieves a collection of items. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::get_item_permissions_check() |
Checks if a given request has access to get a specific item. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::get_item() |
Retrieves one item from the collection. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::create_item_permissions_check() |
Checks if a given request has access to create items. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::create_item() |
Creates one item from the collection. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::update_item_permissions_check() |
Checks if a given request has access to update a specific item. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::update_item() |
Updates one item from the collection. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::delete_item_permissions_check() |
Checks if a given request has access to delete a specific item. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::delete_item() |
Deletes one item from the collection. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::prepare_item_for_database() |
Prepares one item for create or update operation. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::prepare_item_for_response() |
Prepares the item for the REST response. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::get_items_permissions_check() |
Checks if a given request has access to read posts. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::get_items() |
Retrieves a collection of posts. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::get_post() |
Get the post, if the ID is valid. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::get_item_permissions_check() |
Checks if a given request has access to read a post. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::create_item_permissions_check() |
Checks if a given request has access to create a post. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::create_item() |
Creates a single post. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::update_item_permissions_check() |
Checks if a given request has access to update a post. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::delete_item_permissions_check() |
Checks if a given request has access to delete a post. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::delete_item() |
Deletes a single post. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::prepare_item_for_database() |
Prepares a single post for create or update. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::handle_status_param() |
Determines validity and normalizes the given status parameter. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::handle_featured_media() |
Determines the featured media based on a request param. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::check_template() |
Check whether the template is valid for the given post. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::load() |
Loads image from $this->file into new Imagick Object. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::set_quality() |
Sets Image Compression quality on a 1-100% scale. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::update_size() |
Sets or updates current image size. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::resize() |
Resizes current image. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::thumbnail_image() |
Efficiently resize the current image |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::crop() |
Crops Image. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::rotate() |
Rotates current image counter-clockwise by $angle. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::flip() |
Flips current image. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::save() |
Saves current image to file. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::_save() | |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::stream() |
Streams current image to browser. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::strip_meta() |
Strips all image meta except color profiles from an image. |
wp-includes/class-wp-image-editor-imagick.php: WP_Image_Editor_Imagick::pdf_setup() |
Sets up Imagick for PDF processing. |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::call_widget_update() |
Finds and invokes the widget update and control callbacks. |
wp-includes/class-wp-http-streams.php: WP_Http_Streams::request() |
Send a HTTP request to a URI using PHP Streams. |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::parse_widget_setting_id() |
Converts a widget setting ID (option path) to its id_base and number components. |
wp-includes/media.php: wp_get_image_editor() |
Returns a WP_Image_Editor instance and loads file into it. |
wp-includes/class-wp-term.php: WP_Term::get_instance() |
Retrieve WP_Term instance. |
wp-includes/class-wp-http-curl.php: WP_Http_Curl::request() |
Send a HTTP request to a URI using cURL extension. |
wp-includes/class-wp-tax-query.php: WP_Tax_Query::clean_query() |
Validates a single query. |
wp-includes/class-wp-tax-query.php: WP_Tax_Query::transform_query() |
Transforms a single query, from one field to another. |
wp-includes/class-wp-metadata-lazyloader.php: WP_Metadata_Lazyloader::queue_objects() |
Adds objects to the metadata lazy-load queue. |
wp-includes/class-wp-metadata-lazyloader.php: WP_Metadata_Lazyloader::reset_queue() |
Resets lazy-load queue for a given object type. |
wp-includes/pluggable.php: wp_authenticate() |
Authenticate a user, confirming the login credentials are valid. |
wp-includes/pluggable.php: wp_mail() |
Send mail, similar to PHP’s mail |
wp-includes/class-wp-image-editor.php: WP_Image_Editor::set_quality() |
Sets Image Compression quality on a 1-100% scale. |
wp-includes/nav-menu.php: wp_update_nav_menu_object() |
Save the properties of a menu or create a new menu with those properties. |
wp-includes/nav-menu.php: wp_update_nav_menu_item() |
Save the properties of a menu item or create a new one. |
wp-includes/comment.php: wp_handle_comment_submission() |
Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form. |
wp-includes/comment.php: wp_set_comment_status() |
Sets the status of a comment. |
wp-includes/comment.php: wp_check_comment_data_max_lengths() |
Compares the lengths of comment data against the maximum character limits. |
wp-includes/comment.php: wp_allow_comment() |
Validates whether this comment is allowed to be made. |
wp-includes/post-formats.php: set_post_format() |
Assign a format to a post |
wp-includes/class-http.php: WP_Http::request() |
Send an HTTP request to a URI. |
wp-includes/class-http.php: WP_Http::_dispatch_request() |
Dispatches a HTTP request to a supporting transport. |
wp-includes/class-http.php: WP_Http::handle_redirects() |
Handles HTTP Redirects and follows them if appropriate. |
wp-includes/user.php: wp_validate_user_request_key() |
Validate a user request by comparing the key with the request’s key. |
wp-includes/user.php: wp_create_user_request() |
Create and log a user request to perform a specific action. |
wp-includes/user.php: wp_send_user_request() |
Send a confirmation request email to confirm an action. |
wp-includes/user.php: send_confirmation_on_profile_email() |
Send a confirmation request email when a change of user email address is attempted. |
wp-includes/user.php: get_password_reset_key() |
Creates, stores, then returns a password reset key for user. |
wp-includes/user.php: check_password_reset_key() |
Retrieves a user row based on password reset key and login |
wp-includes/user.php: register_new_user() |
Handles registering a new user. |
wp-includes/user.php: wp_insert_user() |
Insert a user into the database. |
wp-includes/user.php: wp_update_user() |
Update a user in the database. |
wp-includes/user.php: wp_authenticate_username_password() |
Authenticate a user, confirming the username and password are valid. |
wp-includes/user.php: wp_authenticate_email_password() |
Authenticates a user using the email and password. |
wp-includes/user.php: wp_authenticate_cookie() |
Authenticate the user using the ClassicPress auth cookie. |
wp-includes/user.php: wp_authenticate_spam_check() |
For Multisite blogs, check if the authenticated user has been marked as a spammer, or if the user’s primary blog has been marked as spam. |
wp-includes/user.php: wp_signon() |
Authenticates and logs a user in with ‘remember’ capability. |
wp-includes/wp-db.php: wpdb::set_prefix() |
Sets the table prefix for the ClassicPress tables. |
wp-includes/wp-db.php: wpdb::get_table_charset() |
Retrieves the character set for the given table. |
wp-includes/wp-db.php: wpdb::strip_invalid_text() |
Strips any invalid characters based on value/charset pairs. |
wp-includes/wp-db.php: wpdb::bail() |
Wraps errors in a nice header and footer and dies. |
wp-includes/wp-db.php: wpdb::check_database_version() |
Whether MySQL database is at least the required minimum version. |
wp-includes/class-wp-theme.php: WP_Theme::__construct() |
Constructor for WP_Theme. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::login() |
Log user in. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::_sanitize_background_setting() |
Callback for validating a background setting value. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::get_changeset_post_data() |
Get the data stored in a changeset post. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::validate_setting_values() |
Validates setting values. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::save() |
Handle customize_save WP Ajax request to save/update a changeset. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::save_changeset_post() |
Save the post for the loaded changeset. |
wp-includes/rest-api.php: rest_validate_value_from_schema() |
Validate a value based on a schema. |
wp-includes/rest-api.php: rest_cookie_check_errors() |
Checks for errors when using cookie-based authentication. |
wp-includes/post.php: wp_insert_post() |
Insert or update a post. |
wp-includes/post.php: wp_update_post() |
Update a post with new post data. |
wp-includes/post.php: register_post_type() |
Registers a post type. |
wp-includes/post.php: unregister_post_type() |
Unregisters a post type. |
wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::insert_auto_draft_post() |
Add a new |
wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::load_available_items_query() |
Performs the post_type and taxonomy queries for loading available menu items. |
wp-includes/ms-functions.php: wpmu_validate_user_signup() |
Sanitize and validate data required for a user sign-up. |
wp-includes/ms-functions.php: wpmu_validate_blog_signup() |
Processes new site registrations. |
wp-includes/ms-functions.php: wpmu_activate_signup() |
Activate a signup. |
wp-includes/ms-functions.php: wpmu_create_blog() |
Create a site. |
wp-includes/ms-functions.php: add_user_to_blog() |
Adds a user to a blog. |
wp-includes/ms-functions.php: remove_user_from_blog() |
Remove a user from a blog. |
wp-includes/class-wp-oembed-controller.php: WP_oEmbed_Controller::get_proxy_item() |
Callback for the proxy API endpoint. |
wp-includes/class-wp-oembed-controller.php: WP_oEmbed_Controller::get_item() |
Callback for the embed API endpoint. |
wp-includes/class-wp-oembed-controller.php: WP_oEmbed_Controller::get_proxy_item_permissions_check() |
Checks if current user can make a proxy oEmbed request. |
wp-includes/feed.php: fetch_feed() |
Build SimplePie object based on RSS or Atom feed from URL. |
wp-includes/taxonomy.php: is_object_in_term() |
Determine if the given object is associated with any of the given terms. |
wp-includes/taxonomy.php: get_term_link() |
Generate a permalink for a taxonomy term archive. |
wp-includes/taxonomy.php: wp_update_term() |
Update term based on arguments provided. |
wp-includes/taxonomy.php: wp_get_object_terms() |
Retrieves the terms associated with the given object(s), in the supplied taxonomies. |
wp-includes/taxonomy.php: wp_set_object_terms() |
Create Term and Taxonomy Relationships. |
wp-includes/taxonomy.php: wp_insert_term() |
Add a new term to the database. |
wp-includes/taxonomy.php: wp_remove_object_terms() |
Remove term(s) associated with a given object. |
wp-includes/taxonomy.php: update_term_meta() |
Updates term metadata. |
wp-includes/taxonomy.php: get_objects_in_term() |
Retrieve object_ids of valid taxonomy and term. |
wp-includes/taxonomy.php: get_term() |
Get all Term data from database by Term ID. |
wp-includes/taxonomy.php: get_term_children() |
Merge all term children into a single array of their IDs. |
wp-includes/taxonomy.php: get_terms() |
Retrieve the terms in a given taxonomy or list of taxonomies. |
wp-includes/taxonomy.php: add_term_meta() |
Adds metadata to a term. |
wp-includes/taxonomy.php: register_taxonomy() |
Creates or modifies a taxonomy object. |
wp-includes/taxonomy.php: unregister_taxonomy() |
Unregisters a taxonomy. |
wp-includes/revision.php: _wp_put_post_revision() |
Inserts post data into the posts table as a post revision. |
wp-includes/class-oembed.php: WP_oEmbed::_fetch_with_format() |
Fetches result from an oEmbed provider for a specific format and complete provider URL |
wp-includes/class-wp-customize-setting.php: WP_Customize_Setting::validate() |
Validates an input. |
wp-admin/includes/deprecated.php: WP_User_Search::query() |
Executes the user search query. |
wp-admin/includes/class-wp-filesystem-ftpext.php: WP_Filesystem_FTPext::__construct() | |
wp-admin/includes/media.php: media_sideload_image() |
Downloads an image from the specified URL and attaches it to a post. |
wp-admin/includes/media.php: media_handle_upload() |
Save a file submitted from a POST request and create an attachment post for it. |
wp-admin/includes/media.php: media_handle_sideload() |
Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload(). |
wp-admin/includes/schema.php: populate_network() |
Populate network settings. |
wp-admin/includes/nav-menu.php: wp_get_nav_menu_to_edit() |
Returns the menu formatted to edit. |
wp-admin/includes/translation-install.php: translations_api() |
Retrieve translations from ClassicPress Translation API. |
wp-admin/includes/plugin-install.php: plugins_api() |
Retrieves plugin installer pages from the ClassicPress.net Plugins API. |
wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::check_package() |
Check that the package source contains a valid theme. |
wp-admin/includes/class-core-upgrader.php: Core_Upgrader::upgrade() |
Upgrade ClassicPress core. |
wp-admin/includes/class-wp-filesystem-direct.php: WP_Filesystem_Direct::__construct() |
constructor |
wp-admin/includes/class-wp-filesystem-ftpsockets.php: WP_Filesystem_ftpsockets::__construct() | |
wp-admin/includes/bookmark.php: wp_insert_link() |
Inserts/updates links into/in the database. |
wp-admin/includes/ajax-actions.php: wp_ajax_add_tag() |
Ajax handler to add a tag. |
wp-admin/includes/ajax-actions.php: wp_ajax_dim_comment() |
Ajax handler to dim a comment. |
wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::fs_connect() |
Connect to the filesystem. |
wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::download_package() |
Download a package. |
wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::unpack_package() |
Unpack a compressed package file. |
wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::clear_destination() |
Clears the directory where this item is going to be installed into. |
wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::install_package() |
Install a package. |
wp-admin/includes/update-core.php: update_core() |
Upgrades the core of ClassicPress. |
wp-admin/includes/class-wp-automatic-updater.php: WP_Automatic_Updater::update() |
Update an item, if appropriate. |
wp-admin/includes/user.php: _wp_privacy_resend_request() |
Resend an existing request and return the result. |
wp-admin/includes/user.php: _wp_privacy_completed_request() |
Marks a request as completed by the admin and logs the current timestamp. |
wp-admin/includes/theme.php: delete_theme() |
Remove a theme |
wp-admin/includes/theme.php: themes_api() |
Retrieves theme installer pages from the ClassicPress.net Themes API. |
wp-admin/includes/user.php: edit_user() |
Edit user settings based on contents of $_POST |
wp-admin/includes/plugin.php: activate_plugin() |
Attempts activation of plugin in a “sandbox” and redirects on success. |
wp-admin/includes/plugin.php: activate_plugins() |
Activate multiple plugins. |
wp-admin/includes/plugin.php: delete_plugins() |
Remove directory and files of a plugin for a list of plugins. |
wp-admin/includes/plugin.php: validate_plugin() |
Validate the plugin path. |
wp-admin/includes/file.php: wp_privacy_send_personal_data_export_email() |
Send an email to the user with a link to the personal data export file |
wp-admin/includes/file.php: download_url() |
Downloads a URL to a local temporary file using the ClassicPress HTTP Class. |
wp-admin/includes/file.php: verify_file_md5() |
Calculates and compares the MD5 of a file to its expected value. |
wp-admin/includes/file.php: unzip_file() |
Unzips a specified ZIP file to a location on the Filesystem via the ClassicPress Filesystem Abstraction. |
wp-admin/includes/file.php: _unzip_file_ziparchive() |
This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the ZipArchive class. |
wp-admin/includes/file.php: _unzip_file_pclzip() |
This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the PclZip library. |
wp-admin/includes/file.php: copy_dir() |
Copies a directory from one location to another via the ClassicPress Filesystem Abstraction. |
wp-admin/includes/file.php: wp_edit_theme_plugin_file() |
Attempt to edit a file for a theme or plugin. |
wp-admin/includes/class-language-pack-upgrader.php: Language_Pack_Upgrader::bulk_upgrade() |
Bulk upgrade language packs. |
wp-admin/includes/class-language-pack-upgrader.php: Language_Pack_Upgrader::check_package() |
Check the package source to make sure there are .mo and .po files. |
wp-admin/includes/class-wp-ajax-upgrader-skin.php: WP_Ajax_Upgrader_Skin::__construct() |
Constructor. |
wp-admin/includes/post.php: wp_autosave() |
Save a post submitted with XHR |
wp-admin/includes/post.php: _wp_translate_postdata() |
Rename $_POST data from form names to DB post columns. |
wp-admin/includes/post.php: wp_write_post() |
Creates a new post from the “Write Post” form using $_POST information. |
wp-admin/includes/dashboard.php: cp_dashboard_petitions_output() |
Display the ClassicPress petitions feeds. |
wp-admin/includes/class-wp-filesystem-ssh2.php: WP_Filesystem_SSH2::__construct() | |
wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::check_package() |
Check a source package to be sure it contains a plugin. |
wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::deactivate_plugin_before_upgrade() |
Deactivates a plugin before it is upgraded. |
wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::delete_old_plugin() |
Delete the old plugin during an upgrade. |
wp-admin/includes/taxonomy.php: wp_insert_category() |
Updates an existing Category or creates a new Category. |
Changelog
Version | Description |
---|---|
WP-2.1.0 | Introduced. |