[wp-hackers] Error handling in WordPress

Frank Bueltge frank at bueltge.de
Mon Feb 15 23:03:34 UTC 2010


It give many solutions with standards of the WP core (wp_mail() and
hook admin_notice ) and also plugins for error handling; one example
is http://www.mittineague.com/dev/er.php
Best regards



On Mon, Feb 15, 2010 at 9:03 PM, Vinicius Massuchetto
<viniciusandre at gmail.com> wrote:
> 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
> http://vinicius.soylocoporti.org.br
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list