Create This Plugin – URL
-
Hi,
I have at least two wordpress sites that I want to add a little piece of functionality, which I cannot write myself due to my experience.In short, it is a URL shorter where it scans links into a post and automatically masks them.
This is different to the other 1000s of URL masker plugins as this one is all automatic meaning you don’t have to manual mask your URLS.
There is a plugin called https://www.harleyquine.com/php-scripts/short-url-plugin/ which I really like, which would be great to extend the functionality off.
Using this as a basis, all that has to be added is a function that scans through posts (or new posts), looks for hyperlinks, automatically add them to the database which then uses the rowid as the masked url.
Then, in all posts, the URL will show the masked url instead of the original URL as it will retreive it from the database automatically.
For Example:
I write a post that has a link to https://www.affiliatelink.com. I enter that link in the post.
The plugin will automaically scan that url in the post and add it to the database and give it automatically a short url.
When someone views the post, wordpress will lookup the url and change the url to the masked url and when someone clicks it, it will go the affiliatelink.comConclusions
Is it possible for someone to make something like this?
So far, I made a plugin that gets all urls on a page and adds it to the database. I just gotta get wordpress to change the links in the post.Thanks
- The topic ‘Create This Plugin – URL’ is closed to new replies.