Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter for caption content #94

Open
arnowelzel opened this issue Sep 27, 2022 · 0 comments
Open

Add filter for caption content #94

arnowelzel opened this issue Sep 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@arnowelzel
Copy link
Owner

Also see: https://wordpress.org/support/topic/add_filter-function/

Some users may want to add some copyright notice to the caption without the need of modifying all existing image descriptions.

This could be achieved using an additional filter for the caption content which would be called before the caption will be send to the frontent. The filter should not modify the caption which is stored in the cache to avoid confusion when people create a filter function and want to change that text. By calling the filter right before creating the frontend output one can dynamically change the filter and see the result right away, even if the original caption was read from the cache.

@arnowelzel arnowelzel added the enhancement New feature or request label Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant