wordpress怎么去除wordpress.org连接

时间:2026-02-15 18:43:26

1、首先我们安装好wordpress程序,此时看到功能表右侧栏有一个wordpress.org链接。

wordpress怎么去除wordpress.org连接

2、现在我们打开【wordpress】程序安装目录,来到X:\xampp\htdocs\wp\wp-includes\中,找到【default-widgets.PHP】文件。

wordpress怎么去除wordpress.org连接

3、打开【default-widgets.PHP】文件,找到widgets/class-wp-widget-meta.php所在目录。

wordpress怎么去除wordpress.org连接

4、打开【class-wp-widget-meta.php】,找到

<?php

/**

* Filter the "Powered by WordPress" text in the Meta widget.

*

* @since 3.6.0

*

* @param string $title_text Default title text for the WordPress.org link.

*/

echo apply_filters( 'widget_meta_poweredby', sprintf( '<li><a href="%s" title="%s">%s</a></li>',

esc_url( __( 'https://wordpress.org/' ) ),

esc_attr__( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ),

_x( 'WordPress.org', 'meta widget link text' )

) );

wp_meta();

?>

代码。

wordpress怎么去除wordpress.org连接

5、将代码替换为

<!--<?php

/**

* Filter the "Powered by WordPress" text in the Meta widget.

*

* @since 3.6.0

*

* @param string $title_text Default title text for the WordPress.org link.

*/

echo apply_filters( 'widget_meta_poweredby', sprintf( '<li><a href="%s" title="%s">%s</a></li>',

esc_url( __( 'https://wordpress.org/' ) ),

esc_attr__( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ),

_x( 'WordPress.org', 'meta widget link text' )

) );

wp_meta();

?>

-->

wordpress怎么去除wordpress.org连接

6、【保存】之后,菜单栏右侧就没有wordpress.org连接了

© 2026 长短途
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com