Devel

Devel is made up of development oriented administrative components for developers and power users who need more control over their WordPress site.

Author:Ptah Dunbar (profile at wordpress.org)
WordPress version required:2.9
WordPress version tested:2.9.2
Plugin version:0.1
Added to WordPress repository:01-02-2010
Last updated:02-02-2010
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://ptahdunbar.com/plugins/devel
Total downloads:1 669
Active installs:10+
plugin download
Click to start download

Devel is made up of development oriented administrative components for developers and power users who need more control over their WordPress site.

Features are seperated into components which can be enabled or disabled. In addition, devel has an intuitive API for adding your own custom components into the mix using the devel components API.

Bundled Components

By default, devel comes packaged with:

  • Custom Fields Manager – Allows to you manage all custom fields in your site.

Additional components will be added gradually throughout future releases. If you have any component suggestions, please visit the forums.

Components API

Using the components API, you can add your own components to devel.

Add a component:

add_action( 'devel_register_components', 'register_my_components' );
function register_my_components() {
    register_devel_component( array( 'id' => 'debug', 'label' => 'Debug', 'callback' => 'debug_callback', 'description' => 'This is a custom component.' ) );
}

In your callback function:

function debug_callback() {
    if ( is_active_devel_component( 'debug' ) ) {
        require_once( TEMPLATEPATH . '/devel-component-debug.php' );
    }
}

In devel-component-debug.php you can hook into the devel menu:

add_action( 'admin_menu', 'custom_fields_init' );
function custom_fields_init() {
    add_submenu_page( 'devel', 'Debug', 'Debug', 'manage_options', 'debug-component', 'debug_admin_page' );
}

function debug_admin_page() { ?>
    <div class="class">
        <?php screen_icon('tools'); ?>
        <h2>Debug</h2>
    </div>
    <?php
}