如何去除后台Yoast SEO Premium的输入key的提示信息
答案:1 悬赏:40
解决时间 2021-01-11 02:29
- 提问者网友:斑駁影
- 2021-01-10 04:22
如何去除后台Yoast SEO Premium的输入key的提示信息
最佳答案
- 二级知识专家网友:一把行者刀
- 2021-01-10 04:47
Yoast SEO去版权提醒步骤如下:
1.首先定位到插件目录的这个文件,用editplus或者其他代码编辑工具打开
/wordpress-seo-premium/vendor/yoast/license-manager/class-license-manager.php
2.打开之后会发现show notice if license is invalid这句注释,作者已经解决的很清楚了,许可证输入提示。
// show notice if license is invalid
if ( ! $this->license_is_valid() ) {
if ( $this->get_license_key() == '' ) {
$message = 'Warning! You didn\'t set your %s license
key yet, which means you\'re missing out on updates and support! href="%s">Enter your license key or target="_blank">get a license here.';
} else {
$message = 'Warning! Your %s license is inactive
which means you\'re missing out on updates and support! href="%s">Activate your license or target="_blank">get a license here.';
}
?>
$this->product->get_text_domain() ),
$this->product->get_item_name(),
$this->product->get_license_page_url(),
$this->product->get_tracking_url( 'activate-license-notice' ) );
?>
3.我们只要彻底删除这个error的显示层div即可
$this->product->get_text_domain() ),
$this->product->get_item_name(),
$this->product->get_license_page_url(),
$this->product->get_tracking_url( 'activate-license-notice' ) );
?>
ok,问题解决。
1.首先定位到插件目录的这个文件,用editplus或者其他代码编辑工具打开
/wordpress-seo-premium/vendor/yoast/license-manager/class-license-manager.php
2.打开之后会发现show notice if license is invalid这句注释,作者已经解决的很清楚了,许可证输入提示。
// show notice if license is invalid
if ( ! $this->license_is_valid() ) {
if ( $this->get_license_key() == '' ) {
$message = 'Warning! You didn\'t set your %s license
key yet, which means you\'re missing out on updates and support! href="%s">Enter your license key or target="_blank">get a license here.';
} else {
$message = 'Warning! Your %s license is inactive
which means you\'re missing out on updates and support! href="%s">Activate your license or target="_blank">get a license here.';
}
?>
$this->product->get_text_domain() ),
$this->product->get_item_name(),
$this->product->get_license_page_url(),
$this->product->get_tracking_url( 'activate-license-notice' ) );
?>
3.我们只要彻底删除这个error的显示层div即可
$this->product->get_text_domain() ),
$this->product->get_item_name(),
$this->product->get_license_page_url(),
$this->product->get_tracking_url( 'activate-license-notice' ) );
?>
ok,问题解决。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |