With the growth of WordPress there are more and more developers who use it as a basis for their own projects that, ultimately, they are always based on a complete WordPress but they use it to have specific utilities such as user registration, access, taxonomies, etc. Something similar to what it offers Backpress the base they use bbPress or GlotPress .
If it's your case, if you want to have the great advantages of WordPress, but use it with a minimum load level only with the basics to take advantage of its many virtues in a controlled manner, which your framework will enjoy or whatever, there is a constant, contemplated in the file
wp-settings.php which you can use.
This constant is called SHORTINIT or "short start", more or less, and in the file ' wp- settings.php 'is defined as follows:
// Stop most of WordPress from being loaded if we just want the basics.
if ( SHORTINIT )
return false ;
To use this functionality, and load the minimum WordPress, just add the following line to your file
wp-config. php :
define ( 'SHORTINIT' TRUE ) ;
The minimum of WordPress will be loaded, so that if you want to add features, it will have to be after the initial load, using functions or plugins . Everything very controlled.
Fantastic trick discovered in wp engineer .