woocommerce_settings_api_sanitized_fields_

woocommerce_settings_api_sanitized_fields_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_settings_api_sanitized_fields_') is found 2 times:

  • /includes/abstracts/abstract-wc-settings-api.php line 197
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
        }
     
        $this->settings[ $key ] = $value;
     
        return update_option( $this->get_option_key(), apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ), 'yes' );
    }
     
    /**
     * Processes and saves options.
     * If there is an error thrown, will continue to save and validate fields, but will leave the erroring field out.
     *
  • /includes/abstracts/abstract-wc-settings-api.php line 238
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
        }
     
        $option_key = $this->get_option_key();
        do_action( 'woocommerce_update_option', array( 'id' => $option_key ) ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
        return update_option( $option_key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ), 'yes' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    }
     
    /**
     * Add an error message for display in admin on save.
     *
     * @param string $error Error message.