As the title of this answer say, I want to define a default caption to all uploaded images in my WordPress… Is there a way to do something like this?
Leave a Reply
You must be logged in to post a comment.
As the title of this answer say, I want to define a default caption to all uploaded images in my WordPress… Is there a way to do something like this?
You must be logged in to post a comment.
There’s really no documentation for it yet, but you’ll probably be able to do it hooking to the
attachment_fields_to_save
filter and inserting the default caption there.From the Codex:
It is defined on wp-admin/includes/media.php:
UPDATE:
I managed to test it, and it works as is. Just drop it on your functions.php 🙂