[wp-hackers] Error handling in WordPress

Otto otto at ottodestruct.com
Mon Feb 15 15:20:34 UTC 2010


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
}


-Otto


More information about the wp-hackers mailing list