admin管理员组文章数量:1336189
Will really appreciate your help with something.
I'm using non English letters in my URL slugs. So every time I add an internal or external link with non English letters to my post (via blocks editor in WP) it becomes mysite/%d7%#t^%....
and so on.
I would like a function or something to add to my functions.php that will filter every post content, find all links <a>
(internal or external ones) and will apply urldecode()
to each link found in the content to fix the link to a readable format in the dev tools.
Thanks ahead.
本文标签:
版权声明:本文标题:urls - How to filter post content and force every link (<a>) made in blocks to return urldecode(<a>) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742401137a2467904.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论