I have seen that Wordpress uses
%category% like strings to create url templates. Is there an easy way to allow such mechanism in a plugin? For example in the plugin's settings page user specifies an option
`<a href=%my_url%>Click here</a>`
And in my plugin I replace
%my_url% with an actual URL before
Is there a function/mechanism in wordpress that I can use to achieve this?