I want to write a wordpress plugin that will publish a draft only when the draft’s title contains a certain keyword that I specify. How to achieve that?
Leave a Reply
You must be logged in to post a comment.
I want to write a wordpress plugin that will publish a draft only when the draft’s title contains a certain keyword that I specify. How to achieve that?
You must be logged in to post a comment.
Should work but didn’t test it.
If the word something doesn’t appear in the tittle text, it becomes a draft, else, it publishes normally. Just change the keyword and it should work.