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

I need to add the line define('WP_POST_REVISIONS', false);

to my config.php , so that post revisions are disabled.

I don't have access to wp-config.php, I have permission to edit my theme and plugins. Is their any way i could add this code to my theme's function.php, or is their any hook to achieve it.


Is their anyway to override the function which has been defined in wp-config.php for eg:

define( 'BP_DEFAULT_COMPONENT', 'profile' );

can i override the above line of code without accessing wp-config.php.

share|improve this question

Use this plugin called Revision Control: http://wordpress.org/extend/plugins/revision-control/

share|improve this answer

Yes, the plugin can override it, use action, init with a function to disable it. for example


function my_disable_revision ()
 define( 'BP_DEFAULT_COMPONENT', 'profile' );
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.