WooCommerce woocommerce_admin_settings_sanitize_option use
WooCommerce woocommerce_admin_settings_sanitize_option use I'm currently using the action woocommerce_update_option_X to save the settings of my plugin settings page. However, the following error occurs: woocommerce_update_option_X action is deprecated, use woocommerce_admin_settings_sanitize_option filter instead But when I try to find information on that filter, I can't figure out how to use it in my case. In my settings I have a table with fields that has to be saved. The table looks like this: ... <tbody> <?php $max_settings = get_option('max_settings',array()); foreach ( $max_settings as $data ) { ?> <tr> <td><input type="text" value="<?php echo esc_attr( $data['var'] ) ?>" name="max_settings[var]" /></td> <td><input type="text" value="<?php echo esc_attr( $data['productid'] ) ?>" name="max_settings[productid]" /></td> ...