[wp-hackers] No direct script access allowed

Eric Mann eric at eam.me
Tue Feb 28 22:57:06 UTC 2012


Yes.

An equivalent would be along the lines of:

if ( ! defined( 'ABSPATH' ) ) die( 'No direct access allowed' );

On Tue, Feb 28, 2012 at 2:47 PM, Micky Hulse <mickyhulse.lists at gmail.com>wrote:

> Hi,
>
> When writing ExpressionEngine plugins, there's this at the top:
>
> if ( ! defined('BASEPATH')) exit('No direct script access allowed');
>
> Could I include something similar in a WP plugin?
>
> Just curious.
>
> Thanks!
> Micky
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list