路径 /AffiliateWP/includes/admin/class-notices.php
找到 class-notices.php 文件的 180 行,然后将下面的代码注释掉。
/** if ( 'expired' === affiliate_wp()->settings->check_license() ) {
echo '<div class="error info"><p>' . __( 'Your license key for AffiliateWP has expired. Please renew your license to re-enable automatic updates.', 'affiliate-wp' ) . '</p></div>';
} elseif ( 'valid' !== affiliate_wp()->settings->check_license() ) {
echo '<div class="notice notice-info"><p>' . sprintf( __( 'Please <a href="%s">enter and activate</a> your license key for AffiliateWP to enable automatic updates.', 'affiliate-wp' ), admin_url( 'admin.php?page=affiliate-wp-settings' ) ) . '</p></div>';
} */
临时方法,插件升级后记得修改,这些都是年付费产品,每年都得续费,所以秘钥 key 基本上没啥用,等到确实有必有购买许可证的时候再购买。