Automatic image renaming based on title
-
16-10-2019 - |
Pergunta
Is there a plugin or a "hack" that can help me do this? I have spent hours try to figure this out so I would greatly appreciate nay help. I have WP 3.1 running php5 Thanks!
eg.: postitle_image-ID.jpg
Solução
Hook into the filter 'sanitize_file_name'
. See my plugin Germanix URL for a working example.
A plugin doing this is Rename Media.
Outras dicas
There is also Media File Renamer, and it does a bit more than Rename Media.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a wordpress.stackexchange