How to Change Contents of Dashboard Help Tab

Add Tool

Change Contents of Dashboard Help Tab


Change Contents of Dashboard Help Tab

WordPress has a little tab in the top-right corner that you can Change Contents of Dashboard Help Tab, when clicked, drops down some contextual help. With the assistance of this self-explanatory function, you can hook different help text to different pages by adding the below WordPress snippets in your functions.php file.

Change Contents of Dashboard Help Tab

<?php
    //hook loading of new page and edit page screens  
    add_action('load-page-new.php','add_custom_help_page');  
    add_action('load-page.php','add_custom_help_page');  

    function add_custom_help_page() {  
       //the contextual help filter  
       add_filter('contextual_help','custom_page_help');  
    }  

    function custom_page_help($help) {  
       //keep the existing help copy  
       echo $help;  
       //add some new copy  
       echo "<h5>Custom Features</h5>";  
       echo "<p>Content placed above the more divider will appear in column 1. Content placed below the divider will appear in column 2.</p>";  
    }  
?>

See more necessary WordPress theme development snippets from our WordPress snippets gallery.


Tags: Change Contents of Dashboard Help Tab, wordpress help tab, wordpress snippets, Dashboard Help Tab, wordpress add_help_tab, wordpress help, wordpress get_current_screen, contextual help wordpress
Payza

About Masum Billah

Change Contents of Dashboard Help Tab 1stWebSuite website seo tool is a free website ranking tool site provides a lot of on page and off page seo useful tools for you. On this site, we have a large number of website ranking tools


SIGN UP TO GET UPDATE TO YOUR INBOX




Discuss about: How to Change Contents of Dashboard Help Tab


adf.ly