The plugin bootstrap file
This file is read by WordPress or ClassicPress to generate the plugin information in the plugin admin area. This file also includes all of the dependencies used by the plugin, registers the activation and deactivation functions, and defines a function that starts the plugin.
Beda Schmid firstname.lastname@example.org
Plugin Name: TukuToi ShortCodes Plugin URI: https://www.tukutoi.com/ Description: A library of indispensable ShortCodes for ClassicPress (and WordPress without Blocks) Websites. Version: 1.26.2 Author: TukuToi Author URI: https://www.tukutoi.com/ License: GPL-2.0+ License URI: https://www.gnu.org/licenses/gpl-2.0.txt Text Domain: tkt-shortcodes Domain Path: /languages
- TKT_SHORTCODES_VERSION = '1.26.2'
- Current plugin version.
- tkt_shortcodes_activate() : mixed
- The code that runs during plugin activation.
- tkt_shortcodes_deactivate() : mixed
- The code that runs during plugin deactivation.
- tkt_shortcodes_run() : mixed
- Begins execution of the plugin.
Current plugin version.
public string TKT_SHORTCODES_VERSION = '1.26.2'
Start at version 1.0.0 and use SemVer Rename this for your plugin and update it as you release new versions.
The Version of this plugin.
The code that runs during plugin activation.
tkt_shortcodes_activate() : mixed
The code that runs during plugin deactivation.
tkt_shortcodes_deactivate() : mixed
Begins execution of the plugin.
tkt_shortcodes_run() : mixed
Since everything within the plugin is registered via hooks, kicking off the plugin from this point in the file does not affect the page life cycle.
Generally you will want to hook this function, instead of callign it globally. However since the purpose of your plugin is not known until you write it, we include the function globally.