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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -