関数
ComboSet::isComboSet( int $skuMetaId )
true
if the SKU is a combo-set item, false
otherwiseパラメータ パラメータ
- $skuMetaId
(数値) (必須)
ファイル: src/API/ComboSet.php
public static function isComboSet($skuMetaId) { global $wpdb; $cst = Schema::getComboSetsTable(); $exists = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM {$cst} WHERE sku_meta_id = %d", (int)$skuMetaId ) ); if ($exists === null) { return Master::getErrorStore()->getErrorResponse(ErrorStore::INTERNAL_SERVER_ERROR); } if ((bool)(int)$exists === true) { return true; } return false; }