Programmatically enable the save button
-
I’m currently writing my first WordPress plugin (React, JS) and I’m wondering how my plugin could enable the save button.
Let me explain what I mean.
Think about someone creating a new page or post in WordPress, then they add my plugin to their page or post and they publish it.
Then they have the page or post open and they adjust what text they have typed into my plugin. The problem is my plugin isn’t attached the save button for the page or post, so when they type away in a <input> box on my plugin, they want to save the page or post. But save button on the page or post hasn’t enabled.
An ugly work around is, if they change something on the page or post that is not my plugin then the save button enables. But I don’t want to use this ugly work round, I want my plugin to enable to save button itself so that everything looks seamless to the user.
So how do I get my plugin to connect programmatically with the save button on the page or post?
- You must be logged in to reply to this topic.