関数
SettlementSettings::filterUpdateOptionsProcessing( array $options )
Filter options with POST
パラメータ パラメータ
- $options
(配列) (必須)
ファイル: src/Admin/SettlementSettings.php
protected function filterUpdateOptionsProcessing($options) { $options['use_quickpay'] = isset($_POST['use_quickpay']) ? sanitize_text_field(wp_unslash($_POST['use_quickpay'])) : $options['use_quickpay']; $options['quickpay_btn_position'] = isset($_POST['quickpay_btn_position']) ? sanitize_text_field(wp_unslash($_POST['quickpay_btn_position'])) : $options['quickpay_btn_position']; $options['quickpay_notes_field'] = isset($_POST['quickpay_notes_field']) ? sanitize_text_field(wp_unslash($_POST['quickpay_notes_field'])) : $options['quickpay_notes_field']; $options['quickpay_custom_order_fields'] = isset($_POST['quickpay_custom_order_fields']) ? sanitize_text_field(wp_unslash($_POST['quickpay_custom_order_fields'])) : $options['quickpay_custom_order_fields']; $options['quickpay_custom_delivery_fields'] = isset($_POST['quickpay_custom_delivery_fields']) ? sanitize_text_field(wp_unslash($_POST['quickpay_custom_delivery_fields'])) : $options['quickpay_custom_delivery_fields']; $options['quickpay_default_customer_address_details'] = isset($_POST['quickpay_default_customer_address_details']) ? $_POST['quickpay_default_customer_address_details'] : $options['quickpay_default_customer_address_details']; $options['merchant_id'] = isset($_POST['merchant_id']) ? trim($_POST['merchant_id']) : ''; $options['access_key'] = isset($_POST['access_key']) ? trim($_POST['access_key']) : ''; $options['secret_key'] = isset($_POST['secret_key']) ? $_POST['secret_key'] : ''; $options['client_id'] = isset($_POST['client_id']) ? trim($_POST['client_id']) : ''; $options['public_key_id'] = isset($_POST['public_key_id']) ? trim($_POST['public_key_id']) : ''; $options['private_key'] = isset($_POST['private_key']) ? trim($_POST['private_key']) : ''; $options['sync_with_order_status_changes'] = isset($_POST['sync_with_order_status_changes']) ? $_POST['sync_with_order_status_changes'] : $options['sync_with_order_status_changes']; $options['use_social_login'] = isset($_POST['use_social_login']) ? $_POST['use_social_login'] : $options['use_social_login']; $options['transaction_processing_type'] = isset($_POST['transaction_processing_type']) ? $_POST['transaction_processing_type'] : $options['transaction_processing_type']; $options['address_priority'] = isset($_POST['address_priority']) ? $_POST['address_priority'] : $options['address_priority']; return $options; }