Hi,
I want to remove the following code from the Admin Panel using Hooks:
<?php
$blog_name = get_bloginfo('name', 'display');
if ( '' == $blog_name ) {
$blog_name = ' ';
} else {
$blog_name_excerpt = wp_html_excerpt($blog_name, 40);
if ( $blog_name != $blog_name_excerpt )
$blog_name_excerpt = trim($blog_name_excerpt) . '…';
$blog_name = $blog_name_excerpt;
unset($blog_name_excerpt);
}
$title_class = '';
if ( function_exists('mb_strlen') ) {
if ( mb_strlen($blog_name, 'UTF-8') > 30 )
$title_class = 'class="long-title"';
} else {
if ( strlen($blog_name) > 30 )
$title_class = 'class="long-title"';
}
?>
<img id="header-logo" src="<?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?>" alt="" width="32" height="32" />
<h1 id="site-heading" <?php echo $title_class ?>>
<a href="<?php echo trailingslashit( get_bloginfo( 'url' ) ); ?>" title="<?php esc_attr_e('Visit Site') ?>">
<span id="site-title"><?php echo $blog_name ?></span>
</a>
<?php if ( current_user_can('manage_options') && '1' != get_option('blog_public') ): ?>
<a id="privacy-on-link" href="options-privacy.php" title="<?php echo esc_attr( apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content') ) ); ?>"><?php echo apply_filters('privacy_on_link_text', __('Search Engines Blocked') ); ?></a>
<?php endif; ?>
</h1>
This is found in the the admin-header.php file in wp-admin. The outputted code is something like this:
<img height="32" width="32" alt="" src="http://strategycms.com/wp-includes/images/blank.gif" id="header-logo">
<h1 id="site-heading">
<a title="Visit Site" href="http://strategycms.com/">
<span id="site-title">Strategy CMS</span>
</a>
</h1>
<div id="wphead-info">
<div id="user_info">
<p>Howdy, <a title="Edit your profile" href="profile.php">Moshe</a> | <a title="Log Out" href="http://strategycms.com/wp-login.php?action=logout&_wpnonce=32e0c01265">Log Out</a></p>
</div>
<div id="favorite-actions"><div id="favorite-first"><a href="post-new.php">New Post</a></div><div id="favorite-toggle"><br></div><div id="favorite-inside" style="width: 126px;"><div class="favorite-action"><a href="edit.php?post_status=draft">Drafts</a></div>
<div class="favorite-action"><a href="post-new.php?post_type=page">New Page</a></div>
<div class="favorite-action"><a href="media-new.php">Upload</a></div>
<div class="favorite-action"><a href="edit-comments.php">Comments</a></div>
</div></div>
</div>
Is this possible? If so, how would I do it?
Thanks and be well,
Moshe