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 Pre-processed CSS, stored in `post_content_filtered`. Normally empty string. Optional. @type string $stylesheet Stylesheet (child theme) to update. Optional, defaults to current 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_term_count, wp_custom_css_cb

Top Google Results

User discussions

wpseek mobile