WordPress dashboard hacks

Programming for Search Engines 101. An area for avid PHP and .NET developers to chat about Programming techniques and how to make better use of search engines.

Moderator: Moderators

WordPress dashboard hacks

Postby beniston » Tue Jun 26, 2012 10:15 pm

beniston
 
Posts: 502
Joined: Wed Nov 02, 2011 4:35 am
Location: Cochin
Tell us why you would like to become a WyseLabs Member:

Re: WordPress dashboard hacks

Postby douglas » Wed Jun 27, 2012 1:43 am

Probably we can start using of this admin side contextual help.

Create custom help messages

If you’re building a site for a client and they have some problems with some parts of the dashboard, a good idea is to provide contextual help to the client.
The following hack will allow you to add a custom help messages for the blog admin. You only have to paste the code into your functions.php file.

function my_admin_help($text, $screen) {
// Check we're only on my Settings page
if (strcmp($screen, MY_PAGEHOOK) == 0 ) {

$text = 'Here is some very useful information to help you use this plugin...';
return $text;
}
// Let the default WP Dashboard help stuff through on other Admin pages
return $text;
}

add_action( 'contextual_help', 'my_admin_help' );

Source:
douglas
 
Posts: 282
Joined: Fri Feb 20, 2009 3:56 am


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest