Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/class-wp-error.php

wp_error_added

Action Hook: Fires when an error is added to a WP_Error object.

Source: wp-includes/class-wp-error.php:207

Used by 1 function | Uses 0 functions

WP_Error::get_all_error_data()

Method: Retrieves all error data for an error code in the order in which the data was added.

Source: wp-includes/class-wp-error.php:239

Used by 0 functions | Uses 1 function

WP_Error::merge_from()

Method: Merges the errors in the given error object into this one.

Source: wp-includes/class-wp-error.php:280

Used by 0 functions | Uses 0 functions

WP_Error::export_to()

Method: Exports the errors in this object into the given one.

Source: wp-includes/class-wp-error.php:291

Used by 0 functions | Uses 0 functions

WP_Error::copy_errors()

Method: Copies errors from one WP_Error instance to another.

Source: wp-includes/class-wp-error.php:303

Used by 0 functions | Uses 0 functions

WP_Error::has_errors()

Method: Verifies if the instance contains errors.

Source: wp-includes/class-wp-error.php:174

Used by 2 functions | Uses 0 functions

WP_Error::remove()

Method: Removes the specified error.

Source: wp-includes/class-wp-error.php:267

Used by 0 functions | Uses 0 functions

WP_Error::get_error_code()

Method: Retrieves the first error code available.

Source: wp-includes/class-wp-error.php:91

Used by 7 functions | Uses 1 function

WP_Error::get_error_messages()

Method: Retrieves all error messages, or the error messages for the given error code.

Source: wp-includes/class-wp-error.php:109

Used by 2 functions | Uses 0 functions

WP_Error::get_error_message()

Method: Gets a single error message.

Source: wp-includes/class-wp-error.php:138

Used by 0 functions | Uses 2 functions

WP_Error::get_error_data()

Method: Retrieves the most recently added error data for an error code.

Source: wp-includes/class-wp-error.php:157

Used by 1 function | Uses 1 function

WP_Error::add()

Method: Adds an error or appends an additional message to an existing error.

Source: wp-includes/class-wp-error.php:190

Used by 2 functions | Uses 2 functions

WP_Error::add_data()

Method: Adds data to an error with the given code.

Source: wp-includes/class-wp-error.php:219

Used by 1 function | Uses 1 function

WP_Error

Class: WordPress Error class.

Source: wp-includes/class-wp-error.php:19

Used by 0 functions | Uses 0 functions

WP_Error::__construct()

Method: Initializes the error.

Source: wp-includes/class-wp-error.php:61

Used by 405 functions | Uses 1 function

WP_Error::get_error_codes()

Method: Retrieves all error codes.

Source: wp-includes/class-wp-error.php:76

Used by 2 functions | Uses 1 function
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry