Default admin color scheme as “blue”

I don’t see easy way to change default so far, fresh color scheme seems to be hardcoded in plenty of places. If you just need to force some specific scheme for all users it can be done with this: add_filter(‘get_user_option_admin_color’,’change_admin_color’); function change_admin_color($result) { return ‘classic’; }

Enabling users to replace site title (text) with a image logo (but keeping the text if there isn’t any image)?

I figured out how: <?php // Theme Options require_once(TEMPLATEPATH . ‘/functions/admin-menu.php’); add_action( ‘wp_head’, ‘theme_options’); function theme_options() { // Initiate Theme Options $options = get_option(‘plugin_options’); // If logo image was uploaded then remove text from site title if ($options[‘logo’] != NULL) $remove_text=”-9999px”; else $remove_text = 0; ?><style> body { background-color: <?php echo $options[‘color_scheme’]; ?> } #header … Read more

Create a admin page in wordpress without admin menus (“wordpress sidebars”)

You can use the built in ThickBox to display the popup by Ajax: //first add thickbox to your page function add_thickbox(){ if(is_admin() && (isset($_GET[‘page’]) && $_GET[‘page’] == “my-plugin-file.php”) { wp_enqueue_script(‘jquery’); wp_enqueue_script(‘thickbox’,null,array(‘jquery’)); wp_enqueue_style(‘thickbox.css’, “https://wordpress.stackexchange.com/”.WPINC.’/js/thickbox/thickbox.css’, null, ‘1.0’); } } add_action(‘wp_enqueue_script’,’add_thickbox’); //then in your user list for each user you add the thickbox //popup on the onclick and … Read more

Is there a way to hook into the update-core page for custom messages?

There is an action, ‘core_upgrade_preamble’, which can be added to output anything you would like at the bottom of the upgrade-core page. For example, try: add_action(‘core_upgrade_preamble’, ‘add_custom_upgrade_core_message’); function add_custom_upgrade_core_message(){ echo “<p>HI THERE</p>”; } That should work to meet your needs.

Remove the Edit button in posts for permalinks on certain user roles? WP 3.3

You could do something like (in your functions.php file); if(current_user_can(‘member’)){ add_filter(‘get_sample_permalink_html’, ‘perm’, ”,4); function perm($return, $id, $new_title, $new_slug){ $post = get_post( $id ); if( ! $post || ( $post->post_type !== ‘testimonials’ ) ) { return $return; } return preg_replace( ‘/<span id=”edit-slug-buttons”>.*<\/span>|<span id=\’view-post-btn\’>.*<\/span>/i’, ”, $return ); } To give credit where credit is due, everything between … Read more