Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Customer_Download_Data_Store::insert_new_download_permission( array $data )
Create download permission for a user, from an array of data.
Description Description
Assumes that all the keys in the passed data are valid.
Parameters Parameters
- $data
-
(Required) Data to create the permission for.
Return Return
(int) The database id of the created permission, or false if the permission creation failed.
Source Source
File: includes/data-stores/class-wc-customer-download-data-store.php