WORDPRESS modification record

WORDPRESS modification record

Just for record keeping and ease of use.
1. The latest comments of wordpress widget display the comment content
2. The solution to enter the ftp password in the wordpress backend is to add the following code in wp-config.php:

 define("FS_METHOD", "direct");
define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);

3. WordPress label vertical arrangement and quantity control
4. WordPress implements automatic article tag extraction and link addition
5. Create a separate tab page in WordPress
6. WordPress prohibits version revision history and automatic saving. Find the wp-includes/defaut-contants.php file and modify the following code:

// Before modification
if ( !defined( 'AUTOSAVE_INTERVAL' ) )
define( 'AUTOSAVE_INTERVAL', 60 );
if ( !defined('WP_POST_REVISIONS') )
define('WP_POST_REVISIONS', true );
// After modification
if ( !defined( 'AUTOSAVE_INTERVAL' ) )
define( 'AUTOSAVE_INTERVAL' , false );
if ( !defined('WP_POST_REVISIONS') )
define('WP_POST_REVISIONS', false );

7. Disable WordPress from automatically saving drafts. Find the template file and open the functions.php file, and add:

//Disable WordPress from automatically saving drafts
add_action( 'wp_print_scripts', 'web589_disable_autosave' );
function web589_disable_autosave(){
wp_deregister_script('autosave');
}

<<:  GreenValueHost: $2.5/month/50GB storage/2000GB traffic/OpenVZ

>>:  Free SMS service

Recommend

Automatically install OpenLiteSpeed ​​on CentOS7

Based on official OpenLiteSpeed. Official script:...

Fastcloud: $13/month/2GB memory/50GB space/2TB traffic/Xen/Taiwan Hinet

Fastcloud (Fastcloud Technology), a Taiwanese mer...

OneProvider: €10/month/i3-530/4GB RAM/2TB HDD/unlimited traffic/France

OneProvider is a long-established hosting provide...

Introduction to American hosting provider Micfo

1. Introduction <br /> Micfo, an American h...

DGCHost: $48/year/1GB memory/30GB SSD space/2TB traffic/KVM/Los Angeles

DGCHost, a Chinese hosting provider, has many neg...

GT-Host: €4/month/4G memory/15GB SSD space/2TB traffic/DDOS/KVM/Germany

GT-Host is a German hosting provider that I have ...

ISPlicense: Selling ISPsystem, Plesk, DirectAdmin, Cpanel and other licenses

ISPlicense, a Russian merchant, was established i...