wp_dashboard_empty

函数
wp_dashboard_empty ( No parameters )

wp_dashboard_empty: 这是一个过滤钩子,允许你控制WordPress仪表盘在没有小工具时是否为空。默认情况下,当没有其他小工具时,仪表盘会显示”欢迎来到WordPress”小工具。

插件可使用Empty函数来输出空的仪表盘小工具(稍后由JS填充)。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function wp_dashboard_empty() {}
/**
* Displays a welcome panel to introduce users to WordPress.
*
* @since 3.3.0
* @since 5.9.0 Send users to the Site Editor if the active theme is block-based.
*/
function wp_dashboard_empty() {} /** * Displays a welcome panel to introduce users to WordPress. * * @since 3.3.0 * @since 5.9.0 Send users to the Site Editor if the active theme is block-based. */
function wp_dashboard_empty() {}

/**
 * Displays a welcome panel to introduce users to WordPress.
 *
 * @since 3.3.0
 * @since 5.9.0 Send users to the Site Editor if the active theme is block-based.
 */

常见问题

FAQs
查看更多 >