• Resolved andresgl

    (@andresgl)


    Hi again,

    Is there anyway to change the name and / path of the default folder without edit the fly-dynamic-image-resizer.php file ?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Junaid Bhura

    (@junaidbhura)

    Hi andresgl,

    There’s a new version of the plugin available. With this update, I’ve added a new filter: ‘fly_dir_path’

    To change the path of the directory, you can add this to your functions.php

    function change_fly_path( $path ) {
    	return '/var/www/html/wp-content/uploads/new-path/';
    }
    add_filter( 'fly_dir_path', 'change_fly_path' );
    • This reply was modified 8 years, 2 months ago by Junaid Bhura.

    @junaidbhura

    This plugin looks great, but I’m wondering if there is any way to use the function you’ve provided here to have the images created by the plugin be stored in the same date-based upload folder as the original upload and WordPress generated image sizes?

    Thank you,

    Plugin Author Junaid Bhura

    (@junaidbhura)

    @stevesearer No, it can’t use the date-based folders because this plugin uses the image IDs to create folders of it’s own. There is a feature to clear these folders which contain the cached images. So these images are temporary in a way. So it would be best if it is kept separate from the original images.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change the Fly Images Directory’ is closed to new replies.