✏️ 编辑:class-smush-pro.php
路径:
/home/forge/kingkrunch.com/wp/wp-content/plugins/wp-smush-pro/core/modules/class-smush-pro.php
大小:632 B · 修改:2026-09-29 06:58:27 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php namespace Smush\Core\Modules; use Smush\Core\Membership\Membership; class Smush_Pro extends Smush { public function show_warning() { if ( ! Membership::get_instance()->is_pro() ) { return false; } if ( ! isset( $this->api_headers ) ) { return false; } if ( isset( $this->api_headers['is_premium'] ) && ! (int)$this->api_headers['is_premium'] ) { return true; } return false; } protected function get_api_key_headers() { $api_key = $this->settings->get_api_key(); if ( ! empty( $api_key ) ) { return array( 'apikey' => $api_key ); } return array(); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF