WordPress: Useful Default Configuration Settings Via Plugin

Everybody who installs WordPress quite often knows the problem: You always have to do the same adjustments, for example deleting the Hello World post. That cost time and money. Our friend Thomas Scholz alias toscho had a simple but genius idea, he puts all needed option settings in a Plugin. Just activate the Plugin, deactivate it and delete it. Done!

You can adjust and expand the options as you like. A good overview is the wp-admin/options.php.

Plugin Name: Toscho's basic settings
Plugin URI: http://toscho.de/2010/wordpress-grundeinstellungen-per-plugin-setzen/
Description: Some useful default configuration settings. See 'wp-admin/options.php' for more options.
Version: 0.2
Author: Thomas Scholz
Author URI: http://toscho.de

function set_toscho_defaults()
    $o = array(
        'avatar_default'            => 'blank',
        'avatar_rating'             => 'G',
        'category_base'             => '/thema',
        'comment_max_links'         => 0,
        'comments_per_page'         => 0,
        'date_format'               => 'd.m.Y',
        'default_ping_status'       => 'closed',
        'default_post_edit_rows'    => 30,
        'links_updated_date_format' => 'j. F Y, H:i',
        'permalink_structure'       => '/%year%/%postname%/',
        'rss_language'              => 'de',
        'timezone_string'           => 'Etc/GMT-1',
        'use_smilies'               => 0,

    foreach ( $o as $k => $v )
        update_option($k, $v);

    // Delete dummy post and comment.
    wp_delete_post(1, TRUE);

register_activation_hook(__FILE__, 'set_toscho_defaults');

Here you can download the Plugin by toscho.

Quick View on WordPress Settings

WordPress-Christmas-18In all versions of WordPress, there is the possibility to view all settings within the admin area of WordPress, but a menu link doesn't exist. The page options.php enables to have a quick look at various options and also allows you to save settings.
However, it must be said, WordPress stores more data in serialized form, which also is a good thing, but those you can no longer edit on this page.


Nonetheless, certainly worth a look and now and then a help to quickly look into the settings of the blog. Alternatively, the plugin WP Developer Assistant can help here, because it also allows a glimpse into the serialized data.

Example-URL: http://example.com/wp-admin/options.php

Alternatively you can also add a menu link. Add the following snippet in to the functions.php of your theme or create a Plugin.

function all_settings_page() {
	add_options_page( __( 'All Settings' ), __( 'All Settings' ), 'administrator', 'options.php' );
add_action( 'admin_menu', 'all_settings_page' );