Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/tukutoi/modernize-wp-caption-shortcode/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Customizes the output of the WP caption shortcode with <picture> element for different formats.
Usage
- create a folder
mu-pluginsinside your WordPresswp-contentfolder (unless it exists already) - place the file
modernize-wp-caption-shortcode.phpinside the folder - ensure you have some logic implemented to generate WebP (or any other format you add to the code) separately