Changes between Initial Version and Version 1 of Ticket #12738, comment 10
- Timestamp:
- 04/12/2011 08:41:30 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12738, comment 10
initial v1 1 1 As is each message I need to show requires 4 lines of code 2 2 3 {{{ 3 4 add_action('admin_notices', 'some_function_name'); 4 5 function some_function_name() { 5 6 echo '<div id="message" class="updated"><p>Hello World!</p></div>'; 6 7 } 8 }}} 7 9 8 10 At its simplest, this way to make the same message all it would take is 9 11 12 {{{ 10 13 add_admin_notice('updated', 'Hello World!'); 14 }}} 11 15 12 16 What looks simpler to you? 4 lines becomes 1 line, multiply this by the number fo messages a given plugin needs to display and thats alot of extra typing saved for the plugin authoer, makes things easier and does this really overbloat core? I personally don't think so.