Subscribe to Continue Downloading

Redirecting...
Media File Renamer Pro automatically renames your media filenames depending on their titles - Media File Renamer Pro - automatically renames your media filenames depending on their titles

Media File Renamer Pro – automatically renames your media filenames depending on their titles

by SourceCodec.NETin on July 14, 2020

Choose Your Desired Option(s)

Media File Renamer Pro – automatically renames your media filenames depending on their titles

If files are renamed, typically the references to it happen to be also updated (posts, webpages, custom types and their particular metadata). If you include the Pro version, this particular can be done furthermore based on the subject of the post (page or any other custom made type) the media will be attached to.

Media File Renamer Pro automatically renames your media filenames depending on their titles - Media File Renamer Pro - automatically renames your media filenames depending on their titles

 

Media File Renamer Pro – automatically renames your media filenames depending on their titles

How It Works

Just a simple file to remember things 🙂

== BASICS

Media File Renamer renames the files, the related files (if thumbnails have been generated for the Media being modified) and then look for references to those files in the database to rename them.

== MAIN FUNCTIONS

* rename( $media, $manual_filename = null, $fromMediaLibrary = true )
Main function. $media is the ID or the content of the Media entry (as an array). $manual_filename is the new filename, if a filename is being forced (otherwise the Renamer will find the best choice). $fromMediaLibrary means that the renaming is being made from the Media Library. That is considered ‘safe’, otherwise media might be renamed at an insecure moment, for example while editing a post, and in that case, we should rename it later.

== CORE HELPERS

* sensitive_file_exists( $filename, $caseInsensitive = true )
Renaming files can be a tricky process! 🙂 If we check file_exists on ABC.jpg and the file is actually abc.jpg, it will be true. So we need to use our own file_exists function.

== REFERENCES CHECK
(Images that are detected as used by WordPress)

== Flows

# Edit Media > update
0. attachment_fields_to_save is registered in init (in Meow_MFRH_Core (core) )
1. core: attachment_fields_to_save
2. core: rename
## case: had thumbnails
– run into `if ( $has_thumbnails ) block`

# Renamer Dashboard – Auto-Rename button
0. ui: admin_head() is registered to call after WordPress admin_head() fired, which called each fires in head section for all admin pages.
1. ui: sent the mfrh_rename as GET parameter then call rename in admin_head()
2. core: rename

# Media Library – Auto button
1. media-library.js: call rename() in // Quick Auto Renamer.
2. ui: call wp_ajax_mfrh_rename_media from Ajax request.
3. core: rename

 

 

 

 

 

 

Download Category
Product Version 4.6.9
File Type PHP, JS, CSS, TXT
File Size 416 KB
Developer meowapps
Documentation

Release Information

  • Released
    :

    July 14, 2020

  • Last Updated
    :

    July 14, 2020

  • Categories
    :
  • File Included
    :

    PHP, JS, CSS, TXT

  • File Size
    :

    416 KB

  • Version
    :

    4.6.9

Share Your Valuable Opinions

You must log in to submit a review.

  • Sign up
Password Strength Very Weak
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
We do not share your personal details with anyone.

Please wait a moment...

(Don't refresh or go back)