ファンクション
wcexwl_get_wlpage_item_row_checkbox( array $row )
商品の行のチェックボックスのHTMLを返す
パラメータ パラメータ
- $row
(配列) (必須) CRUD::buildWishlistRow() を参照
ファイル: src/template-functions.php
function wcexwl_get_wlpage_item_row_checkbox($row) {
$id = $row['id'];
ob_start();
?>
<div class="wcexwl flex row jc-center ai-center batch-checkbox-container">
<input type="checkbox" class="ui checkbox batch-checkbox" data-id="<?php echo $id; ?>" />
</div>
<?php
$checkbox = (string)ob_get_clean();
/**
* Filters the HTML of the checkbox section displayed for an item on the wishlist page
*
* @important
* @param string $checkbox
* @param array $row See \Aivec\Welcart\Extensions\Wishlist\API\CRUD::buildWishlistRow()
*/
$checkbox = apply_filters('wcexwl_filter_wlpage_item_row_checkbox', $checkbox, $row);
return $checkbox;
}