WordPress Editing the Admin Help Tab

Edit: Just adding a screenshot of the part i want to edit for clarity: screenshot for clarity

Im trying to create and modify the WordPress backends help tabs at the top right of the screen with my own content, ive tried using the codex but am unsure if i am looking at the correct reference, whether its not working or im not implementing it correctly but nothing changes when i try use it even in its default usage state. This is the reference im using: [codex reference][2]

Read More

Edit 2: Found this article on how to edit the text but doesnt seem to work, its just placing the output text and then breaking it, is this code deprecated or am i missing something here, below is a screenshot of what happens and the code used from the site. using index as it seems to be the one for dashboard but changing it has the same effect. screenshot of how the code outputs

add_action('load-index-new.php','custom_help_page');
add_action('load-index.php','custom_help_page');
function custom_help_page() {
  add_filter('contextual_help','custom_page_help');
}
function custom_page_help($help) {
  // echo $help; // Uncomment if you just want to append your custom Help text to the default Help text
  echo "<h5>Custom Help text</h5>";
  echo "<p> HTML goes here.</p>";
}

—— removed old code as it was incorrect for the purpose, above is new one——

Related posts

1 comment

  1. This might help:

    How can I add a Submenu to the WordPress Admin Bar

    Adjusting the admin toolbar menu

    But to add a link, you can:

    add_action( 'admin_bar_menu', 'toolbar_link_to_mypage', 999 );
    
    function toolbar_link_to_mypage( $wp_admin_bar ) {
        $args = array(
            'id'    => 'my_page',
            'title' => 'My Page',
            'href'  => 'http://example.com/my-page/',
            'meta'  => array( 'class' => 'my-toolbar-page' )
        );
        $wp_admin_bar->add_node( $args );
    }
    


    EDIT:

    To change the help tab, this will do the trick:

    Add “Help” Tab to One or All Dashboard Screens

Comments are closed.