john_yourspace
asked on
Wordpress admin labeling
Does any one know of a way a labeling the admin section in Wordpress, perhaps a plugin or something, I need to leave notes about image sizes etc in this area
You can add a Custom Dashboard Widget using 'wp_dashboard_setup' action hook..
Try this in a mu-plugin (you can test this also in your theme's functions.php):
Try this in a mu-plugin (you can test this also in your theme's functions.php):
// Adding Custom Dashboard Widgets
add_action('wp_dashboard_setup', 'yourprefix_custom_dashboard_widgets' );
/**
* Adding Custom Dashboard Widgets
* Callback function of the 'wp_dashboard_setup' action hook.
*
*/
function yourprefix_custom_dashboard_widgets() {
if ( current_user_can( 'manage_options' ) ) {//new: wp 3.7
//usage: wp_add_dashboard_widget($widget_id, $widget_name, $callback, $control_callback );
wp_add_dashboard_widget('yourprefix_your_custom_dashboard_widget_slug', 'Your Widget Title', 'yourprefix_custom_widget_content' );
}
}
function yourprefix_custom_widget_content() {
echo '<ol id="my-dashboard-widget-list">'
. '<li>Something to do</li>'
. '<li>Something else to do</li>'
. '</ol>';
}
ASKER
I used this
Thanks guys
function custom_help() {
global $post_ID;
$screen = get_current_screen();
if( isset($_GET['post_type']) ) $post_type = $_GET['post_type'];
else $post_type = get_post_type( $post_ID );
if( $post_type == 'business' || $post_type == 'ai1ec_event' || $post_type == 'story' ) :
$screen->add_help_tab( array(
'id' => 'business_help_tab', //unique id for the tab
'title' => 'Instructions', //unique visible title for the tab
'content' => '<h3>Images</h3><p>The Featured image JPG must be 1500×515 pixels</p>', //actual help text
));
endif;
}
add_action('admin_head', 'custom_help');
Thanks guys
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for john_yourspace's comment #a40066911
for the following reason:
My solution worked
Accepted answer: 0 points for john_yourspace's comment #a40066911
for the following reason:
My solution worked
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
excellent thanks
I use this plugin. I believe it addresses what you are looking for.
Dashboard Admin Notes