I need to make use of the ABSPATH constant but need to know what WP files I need to include so I can make use of it.

Thanks a lot!


It is defined at the very start of wp-load.php.

However it's value is very primitive - only a path to where file is located, which you could easily get without bothering with including it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.