apply_block_core_search_border_styles()WP 1.0

This adds CSS rules for a given border property e.g. width or color. It injects rules into the provided wrapper, button and input style arrays for uniform "flat" borders or those with individual sides configured.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

apply_block_core_search_border_styles( $attributes, $property, $wrapper_styles, $button_styles, $input_styles );
$attributes(массив) (обязательный)
The block attributes.
$property(строка) (обязательный)
Border property to generate rule for e.g. width or color.
$wrapper_styles(массив) (обязательный) (передается по ссылке — &)
Current collection of wrapper styles.
$button_styles(массив) (обязательный) (передается по ссылке — &)
Current collection of button styles.
$input_styles(массив) (обязательный) (передается по ссылке — &)
Current collection of input styles.

Код apply_block_core_search_border_styles() WP 6.5.2

function apply_block_core_search_border_styles( $attributes, $property, &$wrapper_styles, &$button_styles, &$input_styles ) {
	apply_block_core_search_border_style( $attributes, $property, null, $wrapper_styles, $button_styles, $input_styles );
	apply_block_core_search_border_style( $attributes, $property, 'top', $wrapper_styles, $button_styles, $input_styles );
	apply_block_core_search_border_style( $attributes, $property, 'right', $wrapper_styles, $button_styles, $input_styles );
	apply_block_core_search_border_style( $attributes, $property, 'bottom', $wrapper_styles, $button_styles, $input_styles );
	apply_block_core_search_border_style( $attributes, $property, 'left', $wrapper_styles, $button_styles, $input_styles );
}