wp_update_custom_css_post
wp_update_custom_css_post ( $css, $args = array() )
Parameters:- (string) css CSS, stored in `post_content`.
- (array) args { Args. @type string $preprocessed Optional. Pre-processed CSS, stored in `post_content_filtered`. Normally empty string. @type string $stylesheet Optional. Stylesheet (child theme) to update. Defaults to active theme/stylesheet. }
Returns:- (WP_Post|WP_Error) Post on success, error on failure.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Updates the `custom_css` post for a given theme.Inserts a `custom_css` post when one doesn't yet exist.