Custom Plugin for Clients

<?php
/*
 * Plugin Name: Client Plugin
 * Plugin URI: http://webdesign.com
 * Description: Custom Plugin for Clients
 * Version: 1.0
 */

function wdc_create_widget_area(){
register_sidebar( array(
'name' => 'Widget Staging',
'id' => 'customer_widget',
'description' => 'Customize your Widgets here before going live.',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h2 class="customer-title">',
'after_title' => '</h2>'
)
);
}
add_action('widgets_init', 'wdc_create_widget_area');

add_filter('admin_footer_text', 'wdc_custom_footer');
function wdc_custom_footer(){
echo 'Theme and Site Development by Bob Bobertson.  Learn more at <a href="http://bobbobertson.com">http://bobbertson.com</a>.';
}

add_filter('default_content', 'custom_writing_helps');
function custom_writing_helps($content){
global $post_type;
if ($post_type == "post"){

$contentHelp = array(
0 => "Your Blog is Haunted",
1 => "I hacked your site"
);
return $contentHelp[array_rand($contentHelp)];
}
}

add_action('admin_head', 'excerpt_textarea_height');
function excerpt_textarea_height(){
echo '
<style type="text/css">
#excerpt{height:350px;}
</style>
';
}










Learn More :