Skip to content

Instantly share code, notes, and snippets.

@tompesman
Created November 4, 2014 09:42
Show Gist options
  • Save tompesman/d07ce8941929fb503a1f to your computer and use it in GitHub Desktop.
Save tompesman/d07ce8941929fb503a1f to your computer and use it in GitHub Desktop.
Omega Ghost Swatch fix
<?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