Title: Regarding plugin functioning
Last modified: February 25, 2024

---

# Regarding plugin functioning

 *  [n381](https://wordpress.org/support/users/n381/)
 * (@n381)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/regarding-plugin-functioning/)
 * Hello, this plugin you created, is very useful, thank you.
 * I’ve found plugin moves the thumbnails on creation to separate folder as described,
   still, the thumbnails are not being delivered from it’s new location, can you
   please advice how to have thumbnails and it’s paths updated within WordPress 
   so the thumbnail images are utilized from that, separate folder.
    -  This topic was modified 2 years, 2 months ago by [n381](https://wordpress.org/support/users/n381/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [n381](https://wordpress.org/support/users/n381/)
 * (@n381)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/regarding-plugin-functioning/#post-17451091)
 * Hello, after checking through plugin files, i’ve found the function that is serving
   to modify the actual image paths
 * “
 * public function modify_srcset_sources($sources, $size_array, $image_src, $image_meta,
   $attachment_id) {
   if (!isset($image_meta[‘sizes’])) {return $sources;}
 *     ```wp-block-code
           public function modify_srcset_sources($sources, $size_array, $image_src, $image_meta, $attachment_id) {
               if (!isset($image_meta['sizes'])) {
                   return $sources;
               }
   
               foreach ($sources as $width => $source) {
                   $basename = basename($source['url']);
   
                   foreach ($image_meta['sizes'] as $size => $size_data) {
                       if (!isset($size_data['path']) || stripos($size_data['path'], $this->get_image_sizes_path($attachment_id, $size)) === false) {
                           continue;
                       }
   
                       if ($basename == $size_data['file'] && $url = $this->get_image_size_url($attachment_id, $size)) {
                           $sources[$width]['url'] = $url;
       ```
   
 * “Still, it is not applying any changes on the website with custom upload dir.
 * Should i edit the “$source[‘url’]” ?
 * Please advice, thank you
    -  This reply was modified 2 years, 2 months ago by [n381](https://wordpress.org/support/users/n381/).

Viewing 1 replies (of 1 total)

The topic ‘Regarding plugin functioning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fr-thumbnails-folder.svg)
 * [Fr Thumbnails Folder](https://wordpress.org/plugins/fr-thumbnails-folder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fr-thumbnails-folder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fr-thumbnails-folder/)
 * [Active Topics](https://wordpress.org/support/plugin/fr-thumbnails-folder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fr-thumbnails-folder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fr-thumbnails-folder/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [n381](https://wordpress.org/support/users/n381/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/regarding-plugin-functioning/#post-17451091)
 * Status: not resolved