• Resolved NIWO

    (@niwo)


    Hi,

    I use the free version and can’t find the option to change all media to lower case.
    Is it actually possible?

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Val Meow

    (@valwa)

    Hey?@niwo! ??

    If you want to bulk rename your media and apply a logic, you can do so by using filters. Make sure in the plugin’s settings that all the renaming methods are set to ‘none’, which will allow only the filters to apply. Then you can use something like this:

    add_filter( 'mfrh_new_filename', 'my_filter_filename', 10, 3 );

    function my_filter_filename( $new, $old, $post ) {
    return strtolower( $new );
    }
    Thread Starter NIWO

    (@niwo)

    And does this also ensure that the links remain across the entire website?

    In addition I would like to ask for a tutorial on how to run this code once.
    Is there a good one?

    And will this code work also on products?

    • This reply was modified 4 months, 3 weeks ago by NIWO.
    • This reply was modified 4 months, 3 weeks ago by NIWO.
    Thread Starter NIWO

    (@niwo)

    I believe this code only affects newly uploaded media and not the existing media.
    Is that correct?

    Plugin Support Val Meow

    (@valwa)

    Hey?@niwo! ??

    Media File Renamer always triesto update all links to media files, but sometimes it may not work due to compatibility issues with third-party plugins. Always remember to make a backup before performing any operations.

    This feature also applies to previously uploaded images as long as no renaming method is selected in the settings, ensuring that only the filter is applied. Instead of using filters, you can enable the sanitize option in the settings to ensure that all your filenames are in lowercase. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.