'yes', 'deposit_type' => 'percentage', 'deposit_value' => '50', 'allow_full_payment' => 'yes', 'force_deposit' => 'no', 'deposit_label' => __( 'Deposit', 'advanced-partial-payment-or-deposit-for-woocommerce' ), 'due_balance_label' => __( 'Due Balance', 'advanced-partial-payment-or-deposit-for-woocommerce' ), 'pay_button_label' => __( 'Pay Remaining Balance', 'advanced-partial-payment-or-deposit-for-woocommerce' ), 'deposit_text' => __( 'Pay a deposit of {deposit_amount}', 'advanced-partial-payment-or-deposit-for-woocommerce' ), 'full_payment_text' => __( 'Pay full amount of {full_amount}', 'advanced-partial-payment-or-deposit-for-woocommerce' ), 'email_deposit_received' => 'yes', 'email_balance_due' => 'yes', 'email_payment_complete' => 'yes', 'delete_data_on_uninstall' => 'no', ); if ( ! get_option( 'apd_settings' ) ) { update_option( 'apd_settings', $defaults ); } // Version update_option( 'apd_version', APD_VERSION ); } /** * Register custom order status. */ private static function register_order_statuses() { // Just ensure WC is ready; actual registration happens via hook } }