What is a WordPress plugin?, WordPress supplies every developer with following advantages for plugin usage:
Plugin name and filesthat you include a readme.txt file. This file contains the information about your plugin in . If you are going to submit your plugin to the WordPress repository, the existence of the readme.txt is obligatory. But don’t think about it as a burden, there are plenty of benefits to doing this.
Plugin header. It helps WordPress recognise the script as a valid plugin and output proper information on the plugins’ management screen.
Paths to files
define('MSP_HELLOWORLD_DIR', plugin_dir_path(__FILE__)); define('MSP_HELLOWORLD_URL', plugin_dir_url(__FILE__));
(is_admin()) (MSP_HELLOWORLD_DIR. ); (MSP_HELLOWORLD_DIR. ); } msp_helloworld_load();
register_activation_hook(__FILE__,); register_deactivation_hook(__FILE__, ); } }
register_activation_hook(__FILE__,); register_uninstall_hook(__FILE__, ); } }