WordPress开发者和主题制作者的搜索引擎



add_contextual_help ›

Since2.7.0
已弃用3.3.0
add_contextual_help ( $screen, $help )
参数: (2)
  • (string) $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
    Required: Yes
  • (string) $help The content of an 'Overview' help tab.
    Required: Yes
查看:
  • WP_Screen::add_help_tab()
定义在:
文档:

Add contextual help text for a page.

Creates an 'Overview' help tab.



源码

function add_contextual_help( $screen, $help ) {
	_deprecated_function( __FUNCTION__, '3.3.0', 'get_current_screen()->add_help_tab()' );

	if ( is_string( $screen ) )
		$screen = convert_to_screen( $screen );

	WP_Screen::add_old_compat_help( $screen, $help );
}