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 How to Build a WordPress Theme Preparing to Code WordPress Templates Linking CSS

Handles within wordpress style and or script enque

Where are these handle names originate from? Are they named freely or names are predetermined by linked content type?

3 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

You make them up. It's just a way of assigning a unique identify that you can use to refer to them again later with. But you completely make them up :)

Matt Campbell
Matt Campbell
9,767 Points

What do you mean by handle name? That's not an official term so can you explain what you mean please?

in the Wordpress video was referred to handles or names i guess when enqueuing the scripts and styles for example

wp_enqueue_style( 'main', get_stylesheet_uri() );

where "main" was referred to as handle. So my question was: "Where are these handle names originate from? Are they named freely or names are predetermined by linked content type?"