函数文档

get_site_screen_help_sidebar_content()

💡 云策文档标注

概述

该函数用于返回编辑站点屏幕中帮助侧边栏的内容。它生成一个包含链接列表的HTML字符串,用于提供站点管理的相关文档和支持论坛信息。

关键要点

  • 函数 get_site_screen_help_sidebar_content() 返回帮助侧边栏的HTML内容字符串
  • 内容包含翻译后的“更多信息”标题,以及指向站点管理文档和支持论坛的链接
  • 该函数自 WordPress 4.9.0 版本引入,无参数

代码示例

function get_site_screen_help_sidebar_content() {
	return '' . __( 'For more information:' ) . '' .
		'' . __( 'Documentation on Site Management' ) . '' .
		'' . __( 'Support forums' ) . '';
}

注意事项

  • 函数使用 __() 进行国际化翻译,确保内容适配当前语言环境
  • 返回的字符串可直接输出到帮助侧边栏,无需额外处理

📄 原文内容

Returns the content for the help sidebar on the Edit Site screens.

Return

string Help sidebar content.

Source

function get_site_screen_help_sidebar_content() {
	return '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
		'<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/#network-admin-sites-screen">Documentation on Site Management</a>' ) . '</p>' .
		'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>';
}

Changelog

Version Description
4.9.0 Introduced.