Last active
January 10, 2016 13:05
-
-
Save eri-trabiccolo/b89b60cfc27643d9b1a4 to your computer and use it in GitHub Desktop.
Exclude skins from random skins
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
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