Title: Error reporting API?
Last modified: August 21, 2016

---

# Error reporting API?

 *  [Sebastian](https://wordpress.org/support/users/sebstein/)
 * (@sebstein)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-reporting-api/)
 * In my plugin, I want to notify the admin of wrong settings or problems. So for
   example, if the admin submits the settings form, I check the input and want to
   inform him about values being wrong. However, it seems I have to come up with
   some custom code to keep track of the error message while processing the form.
 * This is a bit surprising, because e.g. in Drupal you have a simple
    [set_message() function](https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal_set_message/7)
   allowing to set a message, which is shown in a certain div on the page.
 * Am I just missing something or does something simple really not exist in WordPress?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-reporting-api/#post-4122917)
 * It’s not that simple, but perhaps you did miss [Class_Reference/WP_Error](http://codex.wordpress.org/Class_Reference/WP_Error).
 *  [Timothy Jacobs](https://wordpress.org/support/users/timothyblynjacobs/)
 * (@timothyblynjacobs)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-reporting-api/#post-4122929)
 * You can use the [admin notice](http://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices)
   hook.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error reporting API?’ is closed to new replies.

## Tags

 * [message](https://wordpress.org/support/topic-tag/message/)
 * [reporting](https://wordpress.org/support/topic-tag/reporting/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 3 participants
 * Last reply from: [Timothy Jacobs](https://wordpress.org/support/users/timothyblynjacobs/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/error-reporting-api/#post-4122929)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
