Created
February 5, 2019 13:12
-
-
Save stefanledin/217f69291274e3636f523e1ded300dc0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter('img_caption_shortcode', function( $output, $attr, $content ) { | |
| return '<figure>' . $content . '<figcaption>' . $attr['caption'] . '</figcaption></figure>'; | |
| }, 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there anyway to manipulate all the image captions, like a SVG or dashicon to all image captions of my website?
Smth like the camera logo under this photo.
https://i.stack.imgur.com/rzrhD.png