Hi,
This question is not regarding your theme !
But can you help me ?
When customer add new review to product’s review area. Customers full name display in that area. I want to replace that customer name by this symbols (*). Only display first and last letter of customer. ( check following image )
I got some Jquery code from Stackoverflow…. but I cannot implement that in to my child’s theme’s javascript file properly.
This is the code that working on Web browser console…..
var str = ‘David De Silva’;
console.log(str.replace(str.substring(1,12), “*******”));
But I need to assign that code here in this “.woocommerce-review__author” class.
Code snippet from : https://stackoverflow.com/questions/46957565/replacing-middle-n-characters-in-javascript
Best Regards,