update_custom_css_data

update_custom_css_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('update_custom_css_data') is found 1 times:

  • /wp-includes/theme.php line 2122
    	 *     @type string $preprocessed The original preprocessed CSS passed in to be updated.
    	 *     @type string $stylesheet   The stylesheet (theme) being updated.
    	 * }
    	 */
    	$data = apply_filters( 'update_custom_css_data', $data, array_merge( $args, compact( 'css' ) ) );
    
    	$post_data = array(
    		'post_title'            => $args['stylesheet'],
    		'post_name'             => sanitize_title( $args['stylesheet'] ),
    		'post_type'             => 'custom_css',
    		'post_status'           => 'publish',
    

See this hook used in plugins: