Automattic\WooCommerce\Blocks\BlockTypes
FeaturedItem::render_attributes
Renders the featured item attributes.
Метод класса: FeaturedItem{}
Хуков нет.
Возвращает
Строку.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->render_attributes( $item, $attributes );
- $item(WP_Term|\WC_Product) (обязательный)
- Item object.
- $attributes(массив) (обязательный)
- Block attributes.
По умолчанию:empty array
Код FeaturedItem::render_attributes() FeaturedItem::render attributes WC 11.0.1
abstract protected function render_attributes( $item, $attributes );