Home › Forums › Back End › WP devs, why would I use wp_register_style? › Reply To: WP devs, why would I use wp_register_style?
November 19, 2013 at 6:46 am
#156506
Alen
Participant
You register style that is not defined in WP. If you want to echo out different stylesheet for example, you register it first… so in your code you can refer to it by its name. Ex. wp_enqueue_style('my-registered-style);
It also lets you define any dependencies, so that the system can output those styles as well. You do not need to register default style.css
file.