WordPress-Plugin-Template
WordPress-Plugin-Template copied to clipboard
A robust code template for creating a standards-compliant WordPress plugin.
On init, the instance of this plugin contains the object WordPress_Plugin_Template_Settings, but its field 'settings' is an empty array. Is it my responsibility to create/load this array with plugin settings...
Can someone please show me an example of how to create a metabox with a custom field using the functions in this template? Are there any plugins which use this...
Scenario: Add custom field with type = "color" Expected: The field is rendered on the backend and whenever new color is selected the input box value will be updated. Current...
Great job! Could help implement Metaboxes by functions of the plugin! I miss several attempts with what is described in other threads and I could not make it work in...
Hello, Here is a script update. The script is failing if I try to clone from git clone [email protected]:hlashbrooke/$DEFAULT_SLUG.git $FOLDER/$SLUG This code git clone https://github.com/hlashbrooke/$DEFAULT_SLUG.git $FOLDER/$SLUG works better. Regards,
This plugin template repository has seen a renewed interest in recent times. However, as the current maintainer, I no longer have time to review open issues/PRs, etc, and so the...
Since "Quick Edit" triggers the save_post hook the following function might end up clearing the meta data of registered metaboxes that are not included in the Quick Edit form: https://github.com/hlashbrooke/WordPress-Plugin-Template/blob/27d728611ae47828dcf7fa46e0502bb9a94f6ce4/includes/lib/class-wordpress-plugin-template-admin-api.php#L341...
If you use multiple instances of the boilerplate the following line is going to take all the fields created by all the instances and duplicate the update process. https://github.com/hlashbrooke/WordPress-Plugin-Template/blob/27d728611ae47828dcf7fa46e0502bb9a94f6ce4/includes/lib/class-wordpress-plugin-template-admin-api.php#L282 Any...