Code Monkey home page Code Monkey logo

media-sideload's Introduction

runcommand/media-sideload

Sideload embedded images, and update post content references.

runcommand open source Build Status

Quick links: Using | Installing | Support

Using

wp media sideload --domain=<domain> [--post_type=<post-type>] [--verbose]

Searches through the post_content field for images hosted on remote domains, downloads those it finds into the Media Library, and updates the reference in the post_content field.

In more real terms, this command can help "fix" all post references to <img src="http://remotedomain.com/image.jpg" /> by downloading the image into the Media Library, and updating the post_content to instead use <img src="http://correctdomain.com/image.jpg" />.

OPTIONS

--domain=<domain>
	Specify the domain to sideload images from, because you don't want to sideload images you've already imported.

[--post_type=<post-type>]
	Only sideload images embedded in the post_content of a specific post type.

[--verbose]
	Show more information about the process on STDOUT.

Installing

Installing this package requires WP-CLI v0.23.0 or greater. Update to the latest stable release with wp cli update.

Once you've done so, you can install this package with wp package install runcommand/media-sideload.

Support

This WP-CLI package is free for anyone to use. Support, including usage questions and feature requests, is available to paying runcommand customers.

Think you’ve found a bug? Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version. Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please create a new issue with description of what you were doing, what you saw, and what you expected to see.

Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project. Once you've decided to work on a pull request, please include functional tests and follow the WordPress Coding Standards.

runcommand customers can also email [email protected] for private support.

media-sideload's People

Contributors

danielbachhuber avatar dz0ny avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.