Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Created August 5, 2016 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tommcfarlin/49b515ea8913d6ce32b3027255e86309 to your computer and use it in GitHub Desktop.
Save tommcfarlin/49b515ea8913d6ce32b3027255e86309 to your computer and use it in GitHub Desktop.
[WordPress] How To Prevent Direct Access To Your Plugin
<?php
// 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