Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Customizing the WordPress Admin Area Admin Color Schemes Customizing Admin Color Schemes from Scratch

Stavros Sofroniadis
Stavros Sofroniadis
Courses Plus Student 1,503 Points

About Function named wp_admin_css_color

In the video tutorial https://teamtreehouse.com/library/customizing-the-wordpress-admin-area/admin-color-schemes/customizing-admin-color-schemes-from-scratch

he works with a php file, there is a function named wp_admin_css_color. Inside brackets of this function are parameters that we take from the body(1st part) of the function and call the function ?

wp_admin_css_color( /* We call the function with name wp_admin_css_color that includes the following parameters: Please modify the correct coments for the above*/ 'treehouse', __( 'Treehouse' ), $theme_dir . '/admin-colors/treehouse/colors.css', array( '#384047', '#5BC67B', '#838cc7', '#ffffff' ) );

It was mentioned that treehouse is the short name while Treehouse is the translatable full name. He is talking about the name (will appear in our user profile) where we can view it in Admin Color Scheme?

if yes, why need a short name and translatable full name?

$theme_dir . '/admin-colors/treehouse/colors.css', is a relative link for css file that when use it will appear the new stylesheet that have applied from control panel?

array( '#384047', '#5BC67B', '#838cc7', '#ffffff' ) it relates with a no name array that includes 4 colors ?

Thank You,