Anonymizing author, for privacy
-
Hi!
It’s been a long time since my last post/request.Because of privacy, I need to anonymize author name.
For instance: “John Doe”, did a review, then I need the author renders as “John D.”
I’ve been looking at support forums and trying different things for three hours.I tryed with template, but (obviously) can’t work with ‘{{ author }}’ as a PHP variable.
Also worked with functions:- Using shortcode ‘site_reviews’ with:
do_shortcode('[site_reviews schema="false" assigned_to="post_id"]')
shows CSS style at review’s responses. - Using helper function ‘glsr_get_reviews’ with:
$_reviews = apply_filters('glsr_get_reviews', [], ['assigned_to' => 'post_id','schema' => 'false', ]);
and then just:
echo $_reviews;
or:
echo $_reviews->render();
Has the same effect in both cases: no space between reviews, and no style at review’s replies. - If I use a foreach sentence to iterate through ‘$_reviews’ variable with:
foreach ($_reviews as $_review) { echo $_review; }
Has the same output as indicated on point 2.
So, I can achieve the anonymization through point 3. but I loss all CSS styling.
Is there an easyer way to do it?
Thanks in advance,
Suiram- This topic was modified 5 years, 7 months ago by .
- This topic was modified 5 years, 7 months ago by .
- This topic was modified 5 years, 7 months ago by .
- This topic was modified 5 years, 7 months ago by .
- This topic was modified 5 years, 7 months ago by .
- This topic was modified 5 years, 7 months ago by .
- Using shortcode ‘site_reviews’ with:
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Anonymizing author, for privacy’ is closed to new replies.
