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]
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——
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:
EDIT:
To change the help tab, this will do the trick:
Add âHelpâ Tab to One or All Dashboard Screens