WPDev.one
Core Function
View Source on Trac ↗

wp_get_custom_css_post()

wp_get_custom_css_post( mixed $stylesheet = '' )

Fetches the `custom_css` post for a given theme.

Parameters 0 required

Name / Type Description
$stylesheet
string

Optional. A theme object stylesheet name. Defaults to the active theme.

Return Value

((WP_Post)
| null) The custom_css post or null if none exists.

Function Information

Since Version
4.7.0
Source File
wp-includes/theme.php
Advertisement