Load only the minimum WordPress • WordPress Help

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:

To use this functionality, and load the minimum WordPress, just add the following line to your file wp-config. php :

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 .

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you: