Skip to main content

i'mI'm having a problem. I have my WP with custom roles, capabilities and so on.. But i'mI'm having a problem in displaying the context help (in top right corner). If iI log in as admin-it's all right - it's there, if iI login with account which doesn't have admin rights -it's not there. But iI 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? Thanks.

my code of diplayingdisplaying 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 iI was stupid this time, everything is working. and, no matter ofwhich user. I forgot to add an action for creating a new entry and only added it for editing. that'sThat's why iI was unable to see it.

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

Well i was stupid this time, everything is working. and no matter of user. I forgot to add action for creating new entry and only added for editing. that's why i was unable to see it.

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.

added 183 characters in body
Source Link
Tommixoft
  • 740
  • 1
  • 5
  • 15

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

Well i was stupid this time, everything is working. and no matter of user. I forgot to add action for creating new entry and only added for editing. that's why i was unable to see it.

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

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

Well i was stupid this time, everything is working. and no matter of user. I forgot to add action for creating new entry and only added for editing. that's why i was unable to see it.

deleted 123 characters in body
Source Link
Tommixoft
  • 740
  • 1
  • 5
  • 15

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

i did some tests and the reason for that is that if user non admin - the admin_init or load-post.php actions is not called.

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

i did some tests and the reason for that is that if user non admin - the admin_init or load-post.php actions is not called.

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>',
      ));
    }
  }
added 125 characters in body
Source Link
Tommixoft
  • 740
  • 1
  • 5
  • 15
Loading
deleted 104 characters in body
Source Link
Tommixoft
  • 740
  • 1
  • 5
  • 15
Loading
added 106 characters in body
Source Link
Tommixoft
  • 740
  • 1
  • 5
  • 15
Loading
added 488 characters in body
Source Link
Tommixoft
  • 740
  • 1
  • 5
  • 15
Loading
Source Link
Tommixoft
  • 740
  • 1
  • 5
  • 15
Loading