'woo_expiry_date')); $default = array( 'date_format' => get_option( 'date_format' ), ); $savedSettings = get_option( 'woope_admin_settings', $default ); if (empty($value) && !empty($post->post_parent)) { $parent = get_post($post->post_parent); $value = !empty($parent) ? parent::getValue($parent, array('value' => 'woo_expiry_date')) : ''; } return !empty($value) ? ( !empty(strtotime($value)) ? date_i18n($savedSettings['date_format'], strtotime($value)) : $value ) : ''; } public function isEnabled() { return !function_exists('is_plugin_active') ? in_array('product-expiry-for-woocommerce/product-expiry-for-woocommerce.php', (array)get_option('active_plugins', array())) : is_plugin_active('product-expiry-for-woocommerce/product-expiry-for-woocommerce.php'); } }