Hi everybody I am wondering how I can make a button to edit the page content with the WordPress backend, like Visual Composer does. I could not find any code to insert a simple button to edit a page with my own plugin.
Picture of the WordPress Backend with Visual Composer
In this picture you can see the two blue buttons, I can not create.
I don’t know if you are familiar with WordPress Hooks, but hooks are the magic of how things like this are done in WordPress.
The particular hook you are looking for is this:
The hook above is called in the WordPress “edit” interface (in file
wp-admin/edit-form-advanced.php
.If you want to do something at that location, then you need to access that hook by adding an action:
So, your code (in your plugin) would look something like this:
Hope this helps!