定制 humanmade/rename-images-command 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

humanmade/rename-images-command

最新稳定版本:0.1.0

Composer 安装命令:

composer require humanmade/rename-images-command

包简介

Image renaming command for WordPress

README 文档

README

This is a WordPress CLI command package for renaming images that have dimensions as their suffix such as -150x150.jpg. This can cause some problems in WordPress when parsing content images and determining image sizes.

The original files will be left alone but a new renamed image and thumbnails will be created to avoid any potential broken links.

The command will also optionally perform a search & replace on the database however you should note that this can be very time consuming depending on the size of the database and the number of images to process.

This could take a few minutes per image so you should expect the command to take a few hours if you have 100s of images to rename.

Installing

This package can be installed as a regular WordPress plugin.

Using Composer:

composer require humanmade/rename-images-command

As a WP CLI Package:

wp package install humanmade/rename-images-command

Usage

wp media rename-images

Options

[--network] Run the migration for all sites on the network.

[--sites-page=<int>] If you have more than 100 sites you can process the next 100 by incrementing this.

[--search-replace] Whether to update the database.

[--tables=<tables>] A comma separated string of tables to search & replace on. Wildcards are supported. Defaults to wp_*posts, wp_*postmeta.

[--include-columns=<columns>] The database columns to search & replace on. Defaults to post_content, post_excerpt and meta_value.

统计信息

  • 总下载量: 171.67k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 18
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2020-11-27