Last active
August 29, 2018 06:34
-
-
Save gaupoit/8a644e2a6949ff3594b95dc5db8d5b1c to your computer and use it in GitHub Desktop.
How to create a private link with Prevent direct accecs WordPress Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( class_exists( 'PDA_Private_Link_Services' ) ) { | |
//669 is attachment's id. | |
return PDA_Private_Link_Services::create_private_link( 669, array( | |
'expired_days' => 5, | |
'limit_downloads' => 3, | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment