Pluginception
A plugin that lets you quickly and easily create new plugins. Install, activate, and then go to the Plugins->Create a New Plugin menu to create and activate a new blank plugin, live, on your site. After the plugin is created, you’ll be taken directly to the Plugin Editor screen, to type or paste in
A plugin that lets you quickly and easily create new plugins.
Install, activate, and then go to the Plugins->Create a New Plugin menu to create and activate a new blank plugin, live, on your site.
After the plugin is created, you’ll be taken directly to the Plugin Editor screen, to type or paste in your new plugin’s code.
- 01Upload the files to the /wp-content/plugins/pluginception/ directory or install through WordPress directly.
- 02Activate the “Pluginception” plugin through the ‘Plugins’ menu in WordPress
- 03Try the “Create a New Plugin” option in the Plugins menu.
The “Create a New Plugin” menu item is missing.
There are 4 cases where you will not see the new menu:
- 01You are not logged in as an admin user.
- 02Your site is on a multisite configuration and you are not logged in as a super-admin user.
- 03If the DISALLOW_FILE_EDIT define is enabled, then you cannot edit plugin files.
- 04If the DISALLOW_FILE_MODS define is enabled, then you cannot edit plugin files.
Any of those cases will prevent the menu item from appearing, because you lack the edit_plugins permission.
Is this safe?
Nope, not in the slightest. You have been warned.
That said, it’s perfectly “safe”, given a certain defintion of the word “safe”. The “create a new plugin” screen itself is secure, and inaccessible to anybody who lacks the capability to “edit_plugins” to begin with. Pluginception also uses the proper WP_Filesystem methods to create the plugin, so there’s no worries about incorrect file ownership on shared hosting. You may have to give it FTP credentials on some hosts for it to be able to create the plugin, that’s the WP_Filesystem at work, making sure the files are correctly “owned”.