Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

Renderer::set_fixed_width_style()privateWC 1.0

Set the style attribute for fixed width.

Метод класса: Renderer{}

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->set_fixed_width_style( $p, $fixed_width );
$p(WP_HTML_Tag_Processor) (обязательный)
The HTML tag processor.
$fixed_width(строка) (обязательный)
The fixed width value.

Код Renderer::set_fixed_width_style() WC 9.8.5

private function set_fixed_width_style( $p, $fixed_width ) {
	$p->set_attribute( 'style', $this->get_list_styles( $fixed_width ) );
}