Created
November 4, 2014 09:42
-
-
Save tompesman/d07ce8941929fb503a1f to your computer and use it in GitHub Desktop.
Omega Ghost Swatch fix
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 | |
$options = get_option( THEME_SHORT . '-swatch-list' ); | |
var_dump($options); | |
unset($options[""]); | |
update_option( THEME_SHORT . '-swatch-list', $options); | |
var_dump(get_option( THEME_SHORT . '-swatch-list' )); | |
$options = get_option( THEME_SHORT . '-swatch-files' ); | |
var_dump($options); | |
unset($options[""]); | |
update_option( THEME_SHORT . '-swatch-files', $options); | |
var_dump(get_option( THEME_SHORT . '-swatch-files' )); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment