Hi I have just repurchased the license again but from website I can not make the pro enabled. I have found a snippet code below this may working for any themes. I would like a try can you checck and enable the license
add_filter('wp_get_attachment_url', 'convert_to_r2_url', 10, 2);
add_filter('wp_calculate_image_srcset', 'convert_srcset_to_r2', 10, 5);
function convert_to_r2_url($url, $attachment_id) {
if (wp_attachment_is_image($attachment_id)) {
$r2_url = str_replace('your website url', 'r2 url', $url);
return $r2_url;
}
return $url;
}
function convert_srcset_to_r2($sources, $size_array, $image_src, $image_meta, $attachment_id) {
foreach ($sources as $size => $source) {
$sources[$size]['url'] = str_replace('your website url', 'r2 url', $source['url']);
}
return $sources;
}