| @@ -28,9 +28,10 @@ | ||
| 28 | 28 | 'show_product_regular_price' => 'show_product_regular_price', |
| 29 | 29 | 'show_product_item_cost' => 'show_product_item_cost', |
| 30 | 30 | 'enable_custom_css' => 'enable_custom_css', |
| 31 | 31 | 'custom_css' => 'custom_css', |
| 32 | - 'global_header_footer_enabled' => 'global_header_footer_enabled', | |
| 32 | + 'global_header_footer_enabled' => 'global_header_footer_enabled', | |
| 33 | + 'wp_global_header_footer_enabled' => 'wp_global_header_footer_enabled', | |
| 33 | 34 | ]; |
| 34 | 35 | |
| 35 | 36 | // TODO: change variable name to be more meaning in db ( when initialize ) |
| 36 | 37 | const DEFAULT = [ |
| @@ -47,9 +48,10 @@ | ||
| 47 | 48 | self::META_KEYS['show_product_regular_price'] => false, |
| 48 | 49 | self::META_KEYS['show_product_item_cost'] => false, |
| 49 | 50 | self::META_KEYS['enable_custom_css'] => false, |
| 50 | 51 | self::META_KEYS['custom_css'] => '', |
| 51 | - self::META_KEYS['global_header_footer_enabled'] => false, | |
| 52 | + self::META_KEYS['global_header_footer_enabled'] => false, | |
| 53 | + self::META_KEYS['wp_global_header_footer_enabled'] => false, | |
| 52 | 54 | ]; |
| 53 | 55 | |
| 54 | 56 | public static function find_by_name( $name ) { |
| 55 | 57 | $settings = self::find_all(); |