PDA_Private_Link_Services

Service class that containing the helper functions in order to interact with the private links.

Class PDA_Private_Link_Services

package

pda_services

Methods

Set permission for file is protected

pda_set_permission_for_file_protect(integer $attachment_id, array $fap = array()) : boolean
static

Arguments

$attachment_id

integer

The attachment's id.

$fap

array

Permission.

Response

boolean

Protect attachment file

protect_file(integer $attachment_id) : boolean|\WP_Error
static

Arguments

$attachment_id

integer

The attachment's id.

Response

boolean|\WP_Error