Product Icon

Amazon S3 Storage for WooCommerce

Trending
Serve digital products via Amazon S3

Hide the access keys from the db

It is not the best to save my keys in my db also withut encryption.

Change your function this way:
public static function get_settings() {
$settings = wp_parse_args(
get_option( ‘woo_amazon_s3_storage’, array() ),
array(
‘amazon_access_key’ => ”,
‘amazon_access_secret’ => ”,
‘amazon_url_period’ => ”,
‘force_redirect’ => ‘no’,
‘default_bucket’ => ”,
‘default_region’ => ”,
)
);

if( defined( ‘WOO_AWS_KEY’ ) ) $settings[ ‘amazon_access_key’ ] = WOO_AWS_KEY;
if( defined( ‘WOO_AWS_SECRET’ ) ) $settings[ ‘amazon_access_secret’ ] = WOO_AWS_KEY;

return $settings;
}

They can be stored in th wp-config hidden.

It is quick and option improvement

Author

GITS Web

Current Status

Open

Last updated: March 8, 2024

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.