I'm learning about wordpress plugin creation. I've found very useful the documentations found on wordpress codex about this argument, but I've a question: How the wordpress core manage the plugin installation?
I'm learning about wordpress plugin creation. I've found very useful the documentations found on wordpress codex about this argument, but I've a question: How the wordpress core manage the plugin installation?
WP unzips the .zip file and places its contents inside of /wp-content/plugins/
. From there, WP is set up to recognize plugins inside that folder with a specific comment:
<?php
/*
Plugin Name: Example Plugin
*/
The plugin can either be a single PHP file directly inside /wp-content/plugins/
or be a full subfolder such as /wp-content/plugins/example-plugin/
containing not only the main PHP plugin file but also additional required files.
Activating the plugin is a separate step - if the user has installed the plugin in wp-admin
, they will see a success message once the plugin is installed with a link to activate. The plugin will also appear in the list of all plugins in wp-admin
with a link to activate it there.
/wp-content/plugins/
. From there, WP is set up to recognize every plugin in that folder, so it then appears in the Plugins screen on the dashboard and you have the option to activate it. – WebElaine Commented Dec 3, 2018 at 18:53wp-content/plugin
folder right? What comment will wordpress recognize for plugins? – user9741470 Commented Dec 3, 2018 at 19:21