Created
October 27, 2011 21:56
-
-
Save billerickson/1321001 to your computer and use it in GitHub Desktop.
Only show images marked as Include in Rotator
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( 'be_gallery_metabox_args', 'be_gallery_custom_args' ); | |
/** | |
* Only show images marked as Include in Rotator | |
* @author Bill Erickson | |
* @link http://www.wordpress.org/extend/plugins/gallery-metabox | |
* @since 1.0 | |
* | |
* @param array query $args | |
* @return array query $args | |
*/ | |
function be_gallery_custom_args( $args ) { | |
$args['meta_query'] = array( | |
array( | |
'key' => 'be_rotator_include', | |
'value' => '1' | |
) | |
); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment