Wordpress禁用文章修订版本

Function代码

//禁用文章修订版本,by minirizhi.com
add_filter( 'wp_revisions_to_keep', 'minirizhi_wp_revisions_to_keep', 10, 2 );
function minirizhi_wp_revisions_to_keep( $num, $post ) {
return 0;
}
文章目录