wp_update_custom_css_post


wp_update_custom_css_post ( $css, $args = array() )

Parameters:
  • (string) $css CSS, stored in `post_content`.
  • (array) $args { Args.
Returns:
  • (WP_Post|WP_Error) Post on success, error on failure.
Defined at:

Description

Update 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_update_term_count, wp_get_custom_css, wp_update_comment_count

Top Google Results

User discussions

wpseek mobile