my code stock.com

Tobias Hopp

Hide color scheme picker on the user's profile page
by Tobias Hopp

This snippet removes the color scheme panel from the user profile page. You can style your own scheme independently, users will not have a choice to pick their own scheme.

Snippet options

Download: Download snippet as hide-color-scheme-picker-on-the-users-profile-page.php.
Copy snippet: For this you need a free my code stock.com account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

<?php

// Remove the color picker on the user's profile page or WordPress
remove_admin_color_scheme() {
    global $_wp_admin_css_colors;
    $_wp_admin_css_colors = 0;
}
add_action('admin_head', 'remove_admin_color_scheme');

?>

Create a free my code stock.com account now.

my code stok.com is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.