Олег Нечаев
Олег Нечаев

Reputation: 69

WordPress: How to automatically generate an image's caption

WordPress: How to automatically generate an image's caption (wp-caption-text)? Just as it is now generated from the title of the picture.

Upvotes: 0

Views: 80

Answers (1)

Kris Chase
Kris Chase

Reputation: 137

You can use a filter to update the caption or any other image attribute when the image is being uploaded.

https://codex.wordpress.org/Plugin_API/Filter_Reference/attachment_fields_to_save

Upvotes: 3

Related Questions