Limit the number of posts revisions that WordPress stores in the database.
edit wp-config.php
file in WordPress root:
define( 'WP_POST_REVISIONS', 3 );
WP_POST_REVISIONS:
Example:-
Step 1:-
First we will need to open up your wp-config.php
file. This is located in the root of your WordPress site.
Step 2:-
Insert the following code in wp-config.php
file.
//disable WP Post Revisions // Change auto save interval define('AUTOSAVE_INTERVAL', 300); // seconds // Disable WP Post Revisions define('WP_POST_REVISIONS', false);
or
// Limit WP Post to 3 define('WP_POST_REVISIONS', 3);
Note: This needs to be inserted above the ‘ABSPATH’ otherwise it won’t work.
Adding or Including custom post type to default WordPress loop by altering the 'pre_get_posts' function.…
In Multisite, List Recent Posts Across an Entire Network by using custom query or WP_Query…
code for the plugin file itself:- [crayon-67a3b2ee2311f549929753/] I like to put this in the actual…
Switching the permalink structure from /year/month/post-slug to just /post-slug is easy by going to Settings…
[crayon-67a3b2ee235f2969576708/] or with readmore [crayon-67a3b2ee235f9778748518/]
[crayon-67a3b2ee23834542204358/]