1

For example, i include 'wp-load.php' from external file. but if WP is not installed, then while i access that file, it redirects to '/wp-admin/install.php'. How to disable redirection, even if WP not installed, it doesnt matter to me.

1
  • 1
    What is the use case for this? Why is this even an issue?
    – s_ha_dum
    Commented May 8, 2015 at 13:46

2 Answers 2

0

Well, One trick seems to be defining a constant:

define( 'WP_INSTALLING', 'smth' );  
1
  • Are you sure this doesn't produce an error or warning?
    – s_ha_dum
    Commented May 8, 2015 at 13:44
0
wp_installing(false);

Seems to be the way to go though using the constant is still supported.

Calling the function without params returns actual status, passing false disables installing mode.

See docs: https://developer.wordpress.org/reference/functions/wp_installing/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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