I'm having a problem. I have my WP with custom roles, capabilities and so on.. But I'm having a problem in displaying the context help (in top right corner). If I log in as admin-it's all right - it's there, if I login with account which doesn't have admin rights -it's not there. But I want to display help for lower level accounts too, how to do that? I think this is a WP core thing..can it be overwritten without changing the core?
my code of displaying it:
add_action( 'load-post.php', 'wpd_help_post' );
function wpd_help_post() {
$screen = get_current_screen();
//my custom post types
if ( $screen->id == 'albumas' || $screen->id == 'edit-albumas' ) {
$screen->add_help_tab( array(
'id' => 'wpd-base',
'title' => __('My title', 'sfc'),
'content' => '<h3>My help text</h3>',
));
}
}
Well I was stupid this time, everything is working, no matter which user. I forgot to add an action for creating a new entry and only added it for editing. That's why I was unable to see it.