正在查看 2 个帖子:1-2 (共 2 个帖子)
-
作者帖子
-
In the following file:
/wp-content/plugins/ WordPress -seo/vendor/yoast/license-manager/class-license-manager.php// show notice if license is invalid if ( $this->show_license_notice() && ! $this->license_is_valid() ) { if ( $this->get_license_key() == '' ) { $message = __( '<b>Warning!</b> You didn\'t set your %s license key yet, which means you\'re missing out on updates and support! <a href="%s">Enter your license key</a> or <a href="%s" target="_blank">get a license here</a>.' ); } else { $message = __( '<b>Warning!</b> Your %s license is inactive which means you\'re missing out on updates and support! <a href="%s">Activate your license</a> or <a href="%s" target="_blank">get a license here</a>.' ); } ?> <div class="notice notice-error yoast-notice-error"> <p><?php printf( __( $message, $this->product->get_text_domain() ), $this->product->get_item_name(), $this->product->get_license_page_url(), $this->product->get_tracking_url( 'activate-license-notice' ) ); ?></p> </div> <?php }
这是一个 Yoast SEO Premium 激活警报, 当您安装插件但没有激活许可证。
它根本不会影响您的功能或网站,但有时候对某些人来说很烦人。
因此,我们将指导您如何删除此插件的激活警告。
删除 Yoast SEO Premium 激活警报的说明
转到以下链接:wp-content/plugins/wordpress-seo-premium/vendor/yoast/license-manager/class-license-manager.php(使用记事本或 Notepad ++编辑)
找到代码
public function license_is_valid(){
在下面添加
return true;
-
作者帖子
正在查看 2 个帖子:1-2 (共 2 个帖子)
- 话题 「Yoast WordPress SEO Premium 去掉后台的提示。」 已关闭,不接受新回复。