[wp-hackers] Error handling in WordPress

Vinicius Massuchetto viniciusandre at gmail.com
Mon Feb 15 20:03:33 UTC 2010

On Mon, Feb 15, 2010 at 1:20 PM, Otto <otto at ottodestruct.com> wrote:
> On Sat, Feb 13, 2010 at 11:11 AM, John Eckman <eckman.john at gmail.com> wrote:
>> Does one set a message to be displayed in the admin dashboard? How?
> add_action('admin_notices', 'create_error');
> function create_error() { ?>
> <div class="error"><p>This is an error message.</p></div>
> <?php
> }

That looks ok, but I was trying to find a way to send every PHP +
Wordpress errors by e-mail without showing the message to users.

If anyone has a tip, It'll be welcome.
Vinícius Massuchetto

More information about the wp-hackers mailing list