Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.