Disable redirect to install.php

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.

Topic installation redirect Wordpress

Category Web


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/


Well, One trick seems to be defining a constant:

define( 'WP_INSTALLING', 'smth' );  

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.