You appear to be a bot. Output may be restricted
Description
Filter `customize_update_custom_css_post_content_args`.
Usage
$array = Test_WP_Customize_Custom_CSS_Setting::filter_update_custom_css_data( $data, $args );
Parameters
- $data
- ( array ) required – Data.
- $args
- ( string ) required – Args.
Returns
array Data.
Source
File name: wordpress-develop-tests/phpunit/tests/customize/custom-css-setting.php
Lines:
1 to 15 of 15
public function filter_update_custom_css_data( $data, $args ) { $this->assertIsArray( $data ); $this->assertSameSets( array( 'css', 'preprocessed' ), array_keys( $data ) ); $this->assertSame( '', $data['preprocessed'] ); $this->assertIsArray( $args ); $this->assertSameSets( array( 'css', 'preprocessed', 'stylesheet' ), array_keys( $args ) ); $this->assertSame( $args['css'], $data['css'] ); $this->assertSame( $args['preprocessed'], $data['preprocessed'] ); $data['css'] .= '/* filtered post_content */'; $data['preprocessed'] = '/* filtered post_content_filtered */'; $data['post_title'] = 'Ignored'; return $data; }