Customizing WordPress Admin

Remove the Admin Bar

putting the following in functions.php:

add_filter( 'show_admin_bar', '__return_false' );

<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() {

add_action( 'wp_print_scripts', 'no_autosave' );

<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

<p>Empty Trash Automatically,add this line to wp-config.php </p>

define('EMPTY_TRASH_DAYS', 7 ); // Empty trash every 7 days 

Geef een antwoord

Het e-mailadres wordt niet gepubliceerd.