GK HTML Post Stripper - Added Functionality
We have worked on improving and providing further options to the GK HTML Post Stripper plugin we had shared with you earlier. In case you missed the post, you can revisit it here Wordpress Plugin: GK HTML Post Stripper.
Quick Recap
As a quick reminder of the purpose of the plugin, it aims at allowing stripping HTML tags from posts available within your wordpress install. This could come in handy if you have outdated/old/mis-created HTML tags that cause problematic display within your site content.
New Adjustments
We have decided to make the plugin more flexible and to allow the user to make several choices under two umbrellas:
- Choosing which tags will remain untouched by the plugin's functionality. This is accomplished via adding the new Skipped Tags input field.
- Adding a Max Date field which allows choosing the maximum date of posts which will be affected by the update
Coding the Changes
In order to implement those modifications, we relied on creating 2 additional front end input fields, text and date fields, whose values will be posted upon submission and stored under wordpress options via the update_option and retrieved via the get_option functions.
The queries have also now been updated to utilize relevant values of those fields to filter out posts affected, but also filter out params sent to the strip_tags function.
Downloading the New Version
The changes have been committed to the official GitHub Repository
The relevant commit with the changes is available here
Feel free to check it out, and let me know should you have any questions :)
Thank you
Posted on Utopian.io - Rewarding Open Source Contributors
great work
Thank you
Nice post
Thank you
Thank you for the contribution. It has been approved.
Great work.. here is a few TODO maybe:
You can contact us on Discord.
[utopian-moderator]
Thanks buddy, good moderation and nice suggestions ! :)
well done bro.. very informative and educational post. thanks man :)
Hey @mcfarhat I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x