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.

Parameters

$contentstringrequired
Sidebar content in plain text or HTML.

Source

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

Changelog

VersionDescription
3.3.0Introduced.

User Contributed Notes

  1. Skip to note 2 content

    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.