mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 20:03:53 +02:00
changing the comment for the direct access of the plugin files
This commit is contained in:
parent
db878be182
commit
d7aefa2fd5
2 changed files with 22 additions and 35 deletions
|
@ -1,4 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
// If this file is called directly, abort.
|
||||||
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The WordPress Plugin Boilerplate.
|
* The WordPress Plugin Boilerplate.
|
||||||
*
|
*
|
||||||
|
@ -14,34 +19,6 @@
|
||||||
* @link TODO
|
* @link TODO
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* If this file is attempted to be accessed directly, we'll exit.
|
|
||||||
*
|
|
||||||
* The following check provides a level of security from other files
|
|
||||||
* that request data directly.
|
|
||||||
*/
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The following constant is used to define a constant for this plugin to make it
|
|
||||||
* easier to provide cache-busting functionality on loading stylesheets
|
|
||||||
* and JavaScript.
|
|
||||||
*
|
|
||||||
* After you've defined these constants, do a find/replace on the constants
|
|
||||||
* used throughout the rest of this file.
|
|
||||||
*/
|
|
||||||
// TODO: Replace 'PLUGIN_NAME' wih the name of your class
|
|
||||||
if ( ! defined( 'PLUGIN_NAME_VERSION' ) ) {
|
|
||||||
|
|
||||||
// TODO: Make sure that this version correspondings to the value in the 'Version' in the header
|
|
||||||
define( 'PLUGIN_NAME_VERSION', '1.0.0' );
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Rename this class to a proper name for your plugin.
|
|
||||||
class PluginName {
|
class PluginName {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
* @author Your Name <email@example.com>
|
* @author Your Name <email@example.com>
|
||||||
* @license GPL-2.0+
|
* @license GPL-2.0+
|
||||||
* @link TODO
|
* @link TODO
|
||||||
* @version 1.0.0
|
|
||||||
*
|
*
|
||||||
* @wordpress-plugin
|
* @wordpress-plugin
|
||||||
* Plugin Name: TODO
|
* Plugin Name: TODO
|
||||||
|
@ -25,16 +24,27 @@
|
||||||
* Domain Path: /lang/
|
* Domain Path: /lang/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
// If this file is called directly, abort.
|
||||||
* If this file is attempted to be accessed directly, we'll exit.
|
|
||||||
*
|
|
||||||
* The following check provides a level of security from other files
|
|
||||||
* that request data directly.
|
|
||||||
*/
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The following constant is used to define a constant for this plugin to make it
|
||||||
|
* easier to provide cache-busting functionality on loading stylesheets
|
||||||
|
* and JavaScript.
|
||||||
|
*
|
||||||
|
* After you've defined these constants, do a find/replace on the constants
|
||||||
|
* used throughout the rest of this file.
|
||||||
|
*/
|
||||||
|
// TODO: Replace 'PLUGIN_NAME' wih the name of your class
|
||||||
|
if ( ! defined( 'PLUGIN_NAME_VERSION' ) ) {
|
||||||
|
|
||||||
|
// TODO: Make sure that this version correspondings to the value in the 'Version' in the header
|
||||||
|
define( 'PLUGIN_NAME_VERSION', '1.0.0' );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: replace `class-plugin-boilerplate.php` with the name of the actual plugin's class file
|
// TODO: replace `class-plugin-boilerplate.php` with the name of the actual plugin's class file
|
||||||
require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-boilerplate.php' );
|
require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-boilerplate.php' );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue