Yoast WordPress SEO Premium 去掉後臺的提示。

正在檢視 2 個帖子:1-2 (共 2 個帖子)
  • 作者
    帖子
  • 風間
    參與者
    • 文章數量: 670
    發帖數:294
    樓主
    @fengjian

    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
    			}
    詩語
    管理員
    • 文章數量: 5,942
    發帖數:9997
    @feibisi

    這是一個 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 去掉後臺的提示。」 已關閉,不接受新回覆。

話題資訊