Avatar of john_yourspace
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
WordPress

Avatar of undefined
Last Comment
john_yourspace

8/22/2022 - Mon
Zac Harris

Hi

I use this plugin. I believe it addresses what you are looking for.

Dashboard Admin Notes
eemit

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):
// 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>';
}

Open in new window

john_yourspace

ASKER
I used this


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');

Open in new window


Thanks guys
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
john_yourspace

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
ASKER CERTIFIED SOLUTION
eemit

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
john_yourspace

ASKER
excellent thanks