wordpress怎么去除wordpress.org连接

2025-10-25 06:54:18

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连接了

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢