I’d also like to see this happen, we have a multisite network which tries to make a point of handling the things like image compression without the client needing to worry.
Setting the kraken api credentials network wide would be a good start.
As a workaround I’ve written the following….
add_action('init', 'cw_insert_kraken_api_settings');
function cw_insert_kraken_api_settings(){
if(!class_exists('Wp_Kraken')) return;
$settings = get_option( '_kraken_options' );
if(isset($settings['api_key']) && !empty($settings['api_key'])) return;
$settings['api_key'] = 'apiKeyHere';
$settings['api_secret'] = 'apiSecretHere';
$settings['bulk_async_limit'] = 4;
$settings['auto_optimize'] = 0;
$settings['show_reset'] = 0;
$settings['api_lossy'] = 'lossless';
update_option( '_kraken_options', $settings );
error_log('Kraken API Key updated for ' . get_current_blog_id());
}
Still in testing, but it’s what i’m looking to push out to all.
RiseOfLex88
Does this work?
Is it built into Kracken plugin?