WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

for example i would like blog1 to have at most 3 revisions for each post but i want blog2 can have at most 10 revisions since this blog may have more than one editors that i want to enable this blog to have more revision than blog1, how to do this?

wp-config.php only support for global revision, and can not be customize for each blogs, so should i implement this function by myself?

share|improve this question

No, wp-config.php can have granular constants. Like this:

if ( 'example.com' == $_SERVER['HTTP_HOST'] ) 
    define( 'WP_POST_REVISIONS', 1 );
elseif ( 'blog1.example.com' == $_SERVER['HTTP_HOST'] ) 
    define( 'WP_POST_REVISIONS', 5 );
elseif ( 'blog2.example.com' == $_SERVER['HTTP_HOST'] ) 
    define( 'WP_POST_REVISIONS', 10 );
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.