Last active
October 18, 2015 23:51
-
-
Save jonschr/8b38e6186dded7b72d67 to your computer and use it in GitHub Desktop.
This file contains 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 | |
//* Don't include the opening php tag | |
/** | |
* Add an 'envira' shortcode to all default WordPress galleries | |
*/ | |
add_shortcode( 'gallery', 'prefix_envira_to_gallery_shortcode' ); | |
function prefix_envira_to_gallery_shortcode( $atts ) { | |
$atts[ 'envira'] = 'true'; | |
return gallery_shortcode( $atts ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment