Created
December 30, 2013 20:58
-
-
Save shazdeh/8188033 to your computer and use it in GitHub Desktop.
Change default parameters of the gallery shortcode, disable links by default
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 | |
function gallery_shortcode_defaults( $out, $pairs, $atts ) { | |
$out['link'] = 'none'; | |
return $out; | |
} | |
add_filter( 'shortcode_atts_gallery', 'gallery_shortcode_defaults', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment