WordPress.org

Ready to get started?Download WordPress

Forums

Explain this line of code (2 posts)

  1. tomjanski
    Member
    Posted 1 year ago #

    In several themes I came across this line of code. Can you explain in a nutshell what it does?

    if ( !defined('ABSPATH')) exit;

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    http://php.net/manual/en/function.defined.php

    If that constant does not exist, break the application.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.