mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-06 21:53:56 +08:00
仪表盘的赞助者列表小部件框架完成
This commit is contained in:
parent
3163e2e41c
commit
7dc13d9329
2 changed files with 14 additions and 0 deletions
10
index.php
10
index.php
|
@ -22,6 +22,10 @@ class WP_CHINA_YES {
|
|||
__CLASS__,
|
||||
'plugin_row_meta'
|
||||
), 10, 2);
|
||||
add_action('wp_dashboard_setup', array(
|
||||
__CLASS__,
|
||||
'donors_widgets'
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -49,4 +53,10 @@ class WP_CHINA_YES {
|
|||
|
||||
return $links;
|
||||
}
|
||||
|
||||
public static function donors_widgets() {
|
||||
wp_add_dashboard_widget('custom_help_widget', '《WordPress中国区仓库源建设计划》赞助者', function () {
|
||||
require_once plugin_dir_path(__FILE__) . 'donors_widgets.php';
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue