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
4ab7d3bd46
commit
6fcee06315
2 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ class WP_CHINA_YES {
|
|||
));
|
||||
add_action('wp_dashboard_setup', array(
|
||||
__CLASS__,
|
||||
'donors_widgets'
|
||||
'sponsor_widget'
|
||||
));
|
||||
|
||||
if (empty(get_option('wp_china_yes_options'))) {
|
||||
|
@ -169,9 +169,9 @@ EOT;
|
|||
self::success();
|
||||
}
|
||||
|
||||
public static function donors_widgets() {
|
||||
public static function sponsor_widget() {
|
||||
wp_add_dashboard_widget('custom_help_widget', '《WordPress中国区仓库源建设计划》赞助者', function () {
|
||||
require_once plugin_dir_path(__FILE__) . 'donors_widgets.php';
|
||||
require_once plugin_dir_path(__FILE__) . 'sponsor_widget.php';
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue