LLMS_Admin_Setup_Wizard::save_payments()
Save the “Payments” step.
Return Return
(boolean) Always returns true.
Source Source
File: includes/admin/class.llms.admin.setup.wizard.php
protected function save_payments() { // phpcs:disable WordPress.Security.NonceVerification.Missing -- nonce is verified in `save()`. $country = isset( $_POST['country'] ) ? llms_filter_input_sanitize_string( INPUT_POST, 'country' ) : get_lifterlms_country(); update_option( 'lifterlms_country', $country ); $currency = isset( $_POST['currency'] ) ? llms_filter_input_sanitize_string( INPUT_POST, 'currency' ) : get_lifterlms_currency(); update_option( 'lifterlms_currency', $currency ); $manual = isset( $_POST['manual_payments'] ) ? llms_filter_input_sanitize_string( INPUT_POST, 'manual_payments' ) : 'no'; update_option( 'llms_gateway_manual_enabled', $manual ); // phpcs:enable WordPress.Security.NonceVerification.Missing return true; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.9.0 | Stop using deprecated FILTER_SANITIZE_STRING . |
4.8.0 | Introduced. |