Archived topic
Changing the author name in json-ld
3 replies · Started by Ash on December 5, 2022
Is this the json-ld inserted by GP?
<script id="generate-a11y">
I would like to change the author name for site security.
Is there a filter hook for it?
Hi Ash,
Yes, it's added by GP. There's a filter hook to filter if it should be added or not. But there's no filter to modify it.
There filter hook is: generate_print_a11y_script.
What you can do is use this filter to not add/disable the script, and then hook your own modified script instead.
Thank you
You're welcome, Ash!