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:

Description

Updates the `custom_css` post for a given theme.Inserts a `custom_css` post when one doesn't yet exist.

Related Functions

wp_get_custom_css_post, wp_update_post, wp_get_custom_css, wp_update_comment_count, wp_update_term_count

Top Google Results

User discussions

wpseek mobile