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-6928d77bcf054581360744/] 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-6928d77bcfaef773520228/] or with readmore [crayon-6928d77bcfaf7156149634/]
[crayon-6928d77bd0089536032270/]