• Resolved dounsa

    (@dounsa)


    Is there an option to automatically (in bulk) or manually (by selection) to change the Image Caption and Description after renaming the image file? For example I may want to make the Image Caption and Description the same as the new filename… Any suggestions?

    • This topic was modified 1 year, 9 months ago by dounsa.
Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @dounsa,

    If you rename based on the attached post/page/product, you can synchronize the ALT text and Media Title with it. However, I don’t have an option for Caption and Description yet (I actually would like to use some AI for that).

    That said, you can add custom code and do that syncing if you like. You can use that hook:

    add_action( ‘mfrh_media_renamed’, function ( $post, $old_filepath, $new_filepath, $undo ) {
    … do my thing
    }, 10, 4 );

    But I am on the verge on improving this; I am about to add a mfrh_media_sync action that will be called when the Sync Fields button is used (I have added that new feature but it’s not in the current release). Right now, the actions are only called when the files are renamed, but I would like to give the opportunity to do some syncing actions at anytime.

Viewing 1 replies (of 1 total)
  • The topic ‘Image Caption and Description’ is closed to new replies.