Skip to content

Instantly share code, notes, and snippets.

@xxGus
Created January 11, 2022 19:45
Show Gist options
  • Save xxGus/227064c173c09d1252b3f70818b8e5f5 to your computer and use it in GitHub Desktop.
Save xxGus/227064c173c09d1252b3f70818b8e5f5 to your computer and use it in GitHub Desktop.
How to create a wordpress plugin?
<?php
/**
* Plugin Name: My Plugin Name
* Plugin URI: https://github.com/xxGus
* Description: A simple plugin
* Version: 1.0.0
* Author: Gustavo Baptista
* Author URI: https://github.com/xxGus
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: my-plugin-name
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment