Created
November 27, 2011 18:25
-
-
Save shawnsandy/1397936 to your computer and use it in GitHub Desktop.
gallery metabox support
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
if(function_exists('be_gallery_metabox')): | |
//http://www.billerickson.net/contributions/plugins/gallery-metabox/ | |
function be_gallery_types(){ | |
//define post types | |
$post = array('post','page','cwp_theme'); | |
return $post; | |
} | |
function be_gallery_icon(){ | |
return 'icon-60'; | |
} | |
add_filter( 'be_gallery_metabox_post_types', 'be_gallery_types', 10, 2 ); | |
add_filter( 'be_gallery_metabox_image_size', 'be_gallery_icon', 10, 2 ); | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment