Skip to content

Instantly share code, notes, and snippets.

Created June 8, 2020 23:00
What would you like to do?
* Plugin Name: Sample Plugin
* Description: A sample plugin
* Version: 1.0
require_once __DIR__ . '/vendor/autoload.php';
$plugin = new \Sample\Loader(__DIR__, plugin_dir_url(__FILE__));
register_activation_hook(__FILE__, [\Sample\Loader::class, 'activatePlugin']);
register_deactivation_hook(__FILE__, [\Sample\Loader::class, 'deactivatePlugin']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment