WP_Screen::set_help_sidebar( string $content )

Adds a sidebar to the contextual help for the screen.


Description

Call this in template files after admin.php is loaded and before admin-header.php is loaded to add a sidebar to the contextual help.


Top ↑

Parameters

$content string Required
Sidebar content in plain text or HTML.

Top ↑

Source

File: wp-admin/includes/class-wp-screen.php. View all references

public function set_help_sidebar( $content ) {
	$this->_help_sidebar = $content;
}


Top ↑

Changelog

Changelog
Version Description
3.3.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by Carey

    This would add a third column for the help bar, just include the method on the help_bar callback function.

    function wpdocs_add_help_tab() {
    	$screen = get_current_screen();
    
    	$screen->add_help_tab(
    		array(
    			'id'      => 'hello_dolly',
    			'title'   => __( 'Hello Dolly' ),
    			'content' => '' . __( 'Well, hello, Dolly' ) . '',
    		)
    	);
    
    	$screen->set_help_sidebar( __( 'Hello Dolly' ) );
    }

You must log in before being able to contribute a note or feedback.