ファンクション
wcexwl_get_wishlist_rows()
お気に入りリストの全アイテムのHTMLを返す
戻り値 戻り値
ファイル: src/template-functions.php
function wcexwl_get_wishlist_rows() {
$items = CRUD::getWishlistItems();
$index = 0;
ob_start();
foreach ($items as $item) {
$row = CRUD::buildWishlistRow($item);
echo wcexwl_get_wishlist_row($row);
if ($index < count($items) - 1) {
/**
* Filters the HTML of the divider shown between each item row on the wishlist page
*
* @important
* @param string $html
*/
echo apply_filters('wcexwl_filter_wlpage_row_divider', '<div class="ui divider"></div>');
}
$index++;
}
$html = (string)ob_get_clean();
/**
* Filters all rows HTML of the wishlist page grid
*
* @important
* @param string $html
* @param array $items See \Aivec\Welcart\Extensions\Wishlist\API\CRUD::getWishlistItems()
*/
$html = apply_filters('wcexwl_filter_wlpage_wishlist_rows', $html, $items);
return $html;
}