• 介绍
本文介绍如果自定义一个仪表盘。
[codesyntax lang="php"]
add_action('wp_dashboard_setup', 'suren_welcome_panel');
function suren_welcome_panel()
{
wp_add_dashboard_widget('welcome_dashboard_widget', 'suren widget test', 'suren_welcome_dashboard_widget_function');
}
function suren_welcome_dashboard_widget_function()
{
echo 'sdfs';
}
[/codesyntax]