WordPress at Your Fingertips
function is not described

WC_Customer::get_downloadable_products() public WC 1.0

Gets a customer's downloadable products.

{} It's a method of the class: WC_Customer{}

Return

Array. Array of downloadable products

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->get_downloadable_products();

Code of WC_Customer::get_downloadable_products() WC 5.9.0

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 );
}