WC_Customer::get_downloadable_products
Gets a customer's downloadable products.
Метод класса: WC_Customer{}
Хуки из метода
Возвращает
array. Array of downloadable products
Использование
$WC_Customer = new WC_Customer(); $WC_Customer->get_downloadable_products();
Код WC_Customer::get_downloadable_products() WC Customer::get downloadable products WC 11.2.2
public function get_downloadable_products() {
$downloads = array();
if ( $this->get_id() ) {
$downloads = wc_get_customer_available_downloads( $this->get_id() );
}
return apply_filters( 'woocommerce_customer_get_downloadable_products', $downloads );
}