Custom_Image_Header::css_includes() WordPress Method
The Custom_Image_Header::css_includes() method is used to include the CSS for the custom image header feature in a WordPress theme. This method is called by the WordPress core when the custom image header feature is enabled for a theme.
Custom_Image_Header::css_includes() #
Set up the enqueue for the CSS files
Source
File: wp-admin/includes/class-custom-image-header.php
public function css_includes() {
$step = $this->step();
if ( ( 1 === $step || 3 === $step ) && current_theme_supports( 'custom-header', 'header-text' ) ) {
wp_enqueue_style( 'wp-color-picker' );
} elseif ( 2 === $step ) {
wp_enqueue_style( 'imgareaselect' );
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |