Wraps all images inserted into a WYSIWYG field from the Add Media interface with the
shortcode, even if no caption is assigned to the image.
Author: | NewCity (profile at wordpress.org) |
WordPress version required: | 4.6 |
WordPress version tested: | 4.8.4 |
Plugin version: | 0.1.1 |
Added to WordPress repository: | 10-11-2017 |
Last updated: | 06-01-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | |
Total downloads: | 1 075 |
Active installs: | 10+ |
Click to start download
|
FAQ
Installation Instructions
- Upload the plugin files to the
/wp-content/plugins/plugin-name
directory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress
- This plugin has no settings to configure — once it is activated, it starts doing it’s work immediately
What if I’m already replacing the `` shortcode in my theme or another plugin?
This plugin adds a replacement
filter to the img_caption_shortcode
hook, using the default filter priority of 10. This will interact unpredictably with other filters using the same hook at the same priority, and will override any similar filters using a lower priority.
If you want to use this plugin in combination with a different caption override filter, and you have control over the priority setting of that filter, you should assign your filter a priority value greater than 10
.
This plugin will be useless with any different
shortcode replacement that ignores images without captions.
ChangeLog
0.1.0
Fixed a bug where the closing bracket on HTML tags preceding an image tag would be deleted when the shortcode was applied.
0.1.0
- First release of the plugin