apply_block_core_search_border_style
apply_block_core_search_border_style ( $attributes, $property, $side, $wrapper_styles, $button_styles, $input_styles )
Parameters:- (array) attributes The block attributes.
- (string) property Border property to generate rule for e.g. width or color.
- (string) side Optional side border. The dictates the value retrieved and final CSS property.
- (array) wrapper_styles Current collection of wrapper styles.
- (array) button_styles Current collection of button styles.
- (array) input_styles Current collection of input styles.
Defined at: - Introduced in WordPress: 6.1.0
- Deprecated in WordPress: —
Description
This generates a CSS rule for the given border property and side if provided.Based on whether the Search block is configured to display the button inside
or not, the generated rule is injected into the appropriate collection of
styles for later application in the block's markup.