WordPress at Your Fingertips
function is not described

WC_Customer_Download_Log_Data_Store::get_download_logs_for_permission() public WC 1.0

Get download logs for a given download permission.

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

No Hooks.

Return

Array.

Usage

$WC_Customer_Download_Log_Data_Store = new WC_Customer_Download_Log_Data_Store();
$WC_Customer_Download_Log_Data_Store->get_download_logs_for_permission( $permission_id );
$permission_id(int) (required)
Permission to get logs for.

Code of WC_Customer_Download_Log_Data_Store::get_download_logs_for_permission() WC 5.7.0

public function get_download_logs_for_permission( $permission_id ) {
	// If no permission_id is passed, return an empty array.
	if ( empty( $permission_id ) ) {
		return array();
	}

	return $this->get_download_logs(
		array(
			'permission_id' => $permission_id,
		)
	);
}