This plugin rocks. You inspired me to write my first plugin which works in a similar fashion buy letting you change the welcome panel using widgets/shortcodes/etc.
As I noted here in the FAQ's section of my plugin there are a few plugins like this that really let you change the dashboard through widgets... The others being magic widgets and Dashboard Widget Sidebar.
If you check out how dashboard widget sidebar works it lets you add widgets (metaboxes) to the dashboard
Given the usual way to add metaboxes:
<?php add_meta_box( $id, $title, $callback, $post_type, $context, $priority, $callback_args ); ?>
Dashboard widget sidebar lets you change the following $title, $callback, $context, $priority.
Anyway, the way I've been using your plugin is similar to how CSS/JS Toolbox works. CSS/JS Toolbox is the only other plugin I've ever found that lets you target current screens through simple patterns as opposed to complicated screen hooks.
Doing this works great.
NOW I want to take it a step further. I'd like the action in your plugin construct to work more like Dashboard Widget sidebar where it lets you choose the paramaters, but more specifically lets you choose from a simple dropdown the hook location. So instead, replace the following
admin_notices with a variable that allows the user to select the $hook through a simple dropdown:
` // Display dashboard notes
if ( is_admin() )
add_action( 'admin_notices', array( $this, 'display_notices' ) );
To start I'm thinking the dropdown should be admin_head, admin_notices, and in_admin_footer (and maybe admin_print_scripts)
Anyway, I started working on this today, but if you have any ideas on how to get this to work or think you could get it working with your plugin please let me know! I really think it could change the way people look at backend development.
(HOPE THIS ALL MADE SENSE!)