hi thanks for you its first time posting in communities so
finally i solve it by correct small thing new code is here :
add_filter('webpc_uploads_root', function($path) {
return ABSPATH;
});
add_filter('webpc_uploads_path', function($path) {
return 'site/assets/uploads';
});
add_filter('webpc_uploads_webp', function($path) {
return 'site/assets/uploads-webpc';
});
add_filter('webpc_uploads_prefix', function($prefix) {
return '/cdn/';
});
thanks at all but i have small question for info only
why when i open the img in new tab it will be open in old URL
but when i save it it save it like webp
does the plugin can convert img while upload automatically ?
thanks.