Adding direct access prevention to files
This commit is contained in:
@ -3,16 +3,16 @@
|
||||
/**
|
||||
* Boilerplate Plugin
|
||||
*
|
||||
* @package BoilerplatePlugin
|
||||
* @author
|
||||
* @copyright
|
||||
* @license
|
||||
* @package BoilerplatePlugin
|
||||
* @author Plugin Author
|
||||
* @copyright GPL v2
|
||||
* @license https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
|
||||
*
|
||||
* @wordpress-plugin
|
||||
* Plugin Name: Boilerplate Plugin
|
||||
* Description: Your plugin description.
|
||||
* License: GPL v2
|
||||
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
||||
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
|
||||
* Plugin URI: https://domain.com
|
||||
* Update URI: https://example.com/my-plugin/
|
||||
* Version: 1.0.0
|
||||
@ -21,12 +21,21 @@
|
||||
* Author: Plugin Author
|
||||
* Author URI: https://plugin-author.com
|
||||
* Text Domain: nmsp-plugin-name-text-domain
|
||||
* Domain Path: /languages
|
||||
*/
|
||||
|
||||
// If this file is called directly, abort.
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Currently plugin version.
|
||||
* Start at version 1.0.0 and use SemVer - https://semver.org
|
||||
* Rename this for your plugin and update it as you release new versions.
|
||||
*/
|
||||
define( 'PLUGIN_NAME_VERSION', '1.0.0' );
|
||||
|
||||
define( 'NMSP_PLUGIN_BASE_DIR', __DIR__ );
|
||||
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
|
Reference in New Issue
Block a user