Skip to content

Instantly share code, notes, and snippets.

@Pamps
Last active April 29, 2022 15:58
Show Gist options
  • Save Pamps/3c39342a59e379e4712c6f51d79a566d to your computer and use it in GitHub Desktop.
Save Pamps/3c39342a59e379e4712c6f51d79a566d to your computer and use it in GitHub Desktop.
Default WordPress setup
in wp-config.php
define( 'DISALLOW_FILE_EDIT', true ); // disable file editor
define( 'WP_POST_REVISIONS', 10 ); // keep last 10 revisions
in functions.php
add_filter( 'auto_update_plugin', '__return_true' ); // auto update plugins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment