Skip to content

Instantly share code, notes, and snippets.

@slavapas
Last active February 20, 2019 17:25
Show Gist options
  • Save slavapas/a8057b3fad00a8719a5902835c591731 to your computer and use it in GitHub Desktop.
Save slavapas/a8057b3fad00a8719a5902835c591731 to your computer and use it in GitHub Desktop.
wordpress - prevents public user to directly access your .php files through URL
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment