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

Just bought a Hostigation VPS with 1G memory and OpenVZ

The main problem was that GeekStorage.com had two...

nationserver: $7/year/128MB/10GB space/250GB bandwidth/OpenVZ

Nationserver is a foreign hosting provider that s...

GoMach5: $5/month/2GB RAM/20GB SSD space/1TB traffic/DDoS/KVM/Los Angeles

GoMach5, Christmas kvm vps has a 50% discount. as...

HostMyBytes: $12/year/512MB memory/10GB space/2TB bandwidth/KVM/Los Angeles

HostMyBytes is a Canadian hosting company founded...

Delimiter: $5/month/ATOM 230/2GB memory/100GB space/2TB traffic/1 IP

Delimiter's $5/month dedicated server has dis...

DirectSpace VPS 30% off coupon code

DirectSpace's VPS is great and worth using. D...

Hostodo: $10/year/256MB RAM/50GB space/1 IPv4/1TB traffic/OpenVZ/Los Angeles

Hostodo, which has been introduced many times, ha...

servaRICA: $10/month/1GB RAM/1TB storage/unlimited data/100Mbps/Xen/Canada

servaRICA is a Canadian hosting company founded i...

Santrex Space Introduction

santrex provides virtual hosting, VPS, Reseller, ...

AlphaRacks 1GB RAM Los Angeles QN KVM VPS Review

Details : AlphaRacks: $15/year/1GB memory/20GB sp...

GoMach5: $40/month/16GB memory/500GB hard drive/10TB traffic/5 IP/Los Angeles

GoMach5, which has been introduced before, now ha...