/ Published in: Other

plugins reside in the plugins folder
wp-content/plugins
The following code must go at the top of your plugin file
wp-content/plugins
The following code must go at the top of your plugin file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* Plugin Name: NAME-GOES-HERE Plugin URI: LINK-TO-THE-PLUGIN-WEBSITE Description: DESCRIPTION Author: AUTHOR Version: VERSION Author URI: LINK TO AUTHOR'S WEBSITE */ // On activation, do the following function activation_handler() { // create database or tables // create options } register_activation_hook(__FILE__, "activation_handler"); // Handle plugin deactivate function deactivate_handler() { // clean up } register_deactivation_hook(__FILE__, "deactivation_handler");
Comments
