wp-config development code

WordPress post revisions, debug, load-scripts.php problem fix code

To set post revision limit put this code at the end of wp-config file. We set 3 here to set limit 3 times. you can use false to deactivate post revision

wp-config.php
/**
 * WordPress post revisions 
 * Number / true / false
 */
define( 'WP_POST_REVISIONS', 3);

When you developing a WordPress site you may need to show PHP debug on so you can check if there is an error on your code. To active PHP debug put the one line code on wp-config.php file on your home directory.

wp-config.php
/**
 * php Debug troggle
 * true / false
 */
define( 'WP_POST_REVISIONS', true );

It recommended checking the wp-config file if that code already exists, you can just modify that. Before go on production mood make wp_debug – false.

If you face load-scripts.php problem put the code on wp-config file

wp-config.php
/**
 * load-scripts.php problem fix
 */
define( 'CONCATENATE_SCRIPTS', false );

Next Code

Most View or Popular Post on WordPress

WordPress Post query by user views without plugin ...

Leave a Reply

Your email address will not be published. Required fields are marked *

three + sixteen =

skype

Need Coding Help?

Connect Skype

ACF

Elementor

JavaScript

jQuery

Others

PHP

WooCommerce

WordPress

Create a new WordPress administrator via functions.php & FTP

...

HTML img tag to HTML SVG tag [WordPress]

Image to SVG for WordPress. Generate svg code from ...

Remove Website field from WordPress comment & Change cookies remember text

Remove Website field from WordPress comment & Chan ...

Conditional statement to show pagination

Conditional statement to show pagination on WordPr ...

WordPress Next and Previous Post

WordPress Next and Previous Post navigation for cu ...

top