Core Function
View Source on Trac ↗ wp_update_custom_css_post()
wp_update_custom_css_post( mixed $css, mixed $args = array() ) Updates the `custom_css` post for a given theme.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $css string | CSS, stored in `post_content`. Required |
| array | $args { Args. Required |
Return Value
((WP_Post)
| WP_Error) Post on success, error on failure.
Function Information
Since Version
4.7.0
Source File
wp-includes/theme.php
Advertisement