Remove the Admin Bar
putting the following in functions.php:
add_filter( 'show_admin_bar', '__return_false' ); <h3>Auto-save</h3> <p>Specify the interval that WordPress should auto-save, you just have to put a single line of code in wp-config.php:</p> define('AUTOSAVE_INTERVAL', 300); // 60 * 5, auto-saves every 5 minutes <p>Disable autosave:</p> function no_autosave() { wp_deregister_script('autosave'); } add_action( 'wp_print_scripts', 'no_autosave' ); <h3>Revisions</h3> <p>Add the following to your wp-config.php file:</p> define('WP_POST_REVISIONS', 3); // Maximum 3 revisions per post define('WP_POST_REVISIONS', false); // Disable revisions <h3>Trash</h3> <p>Empty Trash Automatically,add this line to wp-config.php </p> define('EMPTY_TRASH_DAYS', 7 ); // Empty trash every 7 days
Geef een reactie