php – how to redirekt outgoing links first to my own website


How can redirect outgoing links first to my own site?
for example i got a recipe post and i got a outgoing link to another website
this link is stored in a metafield

$recipe_url = "";

but in the post i dont want to href i want
my own link like:

$displayed_url = "";

does someone know how to archive this in wordpress?

DougPilatus 2 years 2022-05-11T14:35:33-05:00 0 Answers 0 views 0

Leave an answer