Automattic\WooCommerce\Blocks\BlockTypes
FeaturedItem::render_attributes()
Renders the featured item attributes.
Method of the class: FeaturedItem{}
No Hooks.
Return
String
.
Usage
// protected - for code of main (parent) or child class $result = $this->render_attributes( $item, $attributes );
- $item(\WP_Term|\WC_Product) (required)
- Item object.
- $attributes(array) (required)
- Block attributes.
Default: empty array
FeaturedItem::render_attributes() FeaturedItem::render attributes code WC 9.4.2
abstract protected function render_attributes( $item, $attributes );