mentosmenno2 / wp-cli-my-eyes-are-up-here
该包的最新版本(v1.0.1)没有可用的许可证信息。
使 My Eyes Are Up Here 插件与 WP-CLI 兼容
v1.0.1
2021-08-11 19:13 UTC
This package is auto-updated.
Last update: 2024-09-12 02:01:12 UTC
README
使 My Eyes Are Up Here 插件与 WP-CLI 兼容
此包实现了在 Pull Request #22 of the My Eyes Are Up Here repository 中创建的修复,因为 原始仓库 似乎已被遗弃。
安装
此包可在 Packagist 上找到。
准备
在安装之前,请确保所需的 mu-plugin 已经安装在 mu-plugins 目录中。请将以下内容添加到您的 composer.json
文件根目录。请确保安装程序路径设置为正确的 mu-plugins 路径,该路径从您的 composer.json
文件的位置计算得出。
"extra": { "installer-paths": { "../../mu-plugins/{$name}": [ "type:wordpress-muplugin" ] } }
作为替代,您也可以只为该插件设置安装程序路径。
"extra": { "installer-paths": { "../../mu-plugins/{$name}": [ "mentosmenno2/wp-cli-my-eyes-are-up-here" ] } }
要求包
确保您已为安装做好准备后,使用 Composer 要求该包。
composer require mentosmenno2/wp-cli-my-eyes-are-up-here
使用方法
您现在可以使用 WP CLI 媒体 regenrate 命令 重新生成您的图像,并让它们由 My Eyes Are Up Here 裁剪。
wp media regenerate