php - Limit Wordpress revisions of Pages and CPT without plugin -


i creating question both answer myself, others might find same issue, cannot find single article online.

i have been using below code, within wp-config.php file time now, have noticed doesn't work universally - works 'posts'. enable same setting both pages , custom post types.

does have information regarding this?

/** limit post revisions prevent db bloat */ define( 'wp_post_revisions', 5 ); 

in installations works universally. discussion confirms experience: http://pods.io/forums/topic/revisions-support/


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -