Skip to main content
2 of 8
added 488 characters in body
Tommixoft
  • 740
  • 1
  • 5
  • 15

Contextual help in wp-admin for non admins

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 WP core thing..can it be overwritten without changing the core? Thanks.

my code of diplaying 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>',
      ));
    }
  }
Tommixoft
  • 740
  • 1
  • 5
  • 15