Skip to content

Instantly share code, notes, and snippets.

@eri-trabiccolo
Last active January 10, 2016 13:05
Show Gist options
  • Save eri-trabiccolo/b89b60cfc27643d9b1a4 to your computer and use it in GitHub Desktop.
Save eri-trabiccolo/b89b60cfc27643d9b1a4 to your computer and use it in GitHub Desktop.
Exclude skins from random skins
add_filter('tc_skins_to_randomize', 'exclude_skins');
function exclude_skins( $_skins ){
$_my_excluded = array(
'grey.css',
'grey2.css'
);
foreach ( $_my_excluded as $key )
if ( array_key_exists( $key, $_skins ) )
unset( $_skins[$key] );
return $_skins;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment