'', 'from_lines' => get_bloginfo( 'name' ) . "\n" . get_option( 'woocommerce_store_address', '' ), 'footer_text' => __( 'Thank you for your order.', 'orderbay-lite' ), 'paper' => self::default_paper(), 'tax_id' => '', 'peppol_id' => '', 'seller_country' => '', // PDF invoices in emails: on by default for these customer emails. 'email_attach_on' => '1', 'email_attach' => array( 'customer_completed_order', 'customer_invoice' ), // E-invoicing (Factur-X / ZUGFeRD, XRechnung). 'einv_contact' => '', 'einv_phone' => '', 'einv_iban' => '', 'einv_bic' => '', 'einv_account_name' => '', 'einv_due_days' => '14', 'einv_pdf_profile' => 'en16931', 'einv_email_facturx' => '0', ); } /** * @return array */ public static function get_doc_settings() { $raw = get_option( self::OPT_DOCS, array() ); if ( ! is_array( $raw ) ) { $raw = array(); } return wp_parse_args( $raw, self::default_doc_settings() ); } public function register_menu() { add_submenu_page( 'woocommerce', __( 'OrderBay Lite invoices', 'orderbay-lite' ), __( 'OrderBay Lite', 'orderbay-lite' ), 'manage_woocommerce', 'orderbay-lite', array( 'OBLT_Documents', 'render_settings_static' ) ); } }