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 | |
/** | |
* Gravity Perks // GP Media Library // ACF | |
* Auto-attach Uploaded Files to Post created by "GF-Advanced Post Creation Add-On" | |
* this function help if you wish to attach the Files to the Post you generate | |
* If you use ACF and limit File/Image/Gallery Field (Files uploaded to this post) this is necessary | |
* | |
* Install & Activate GP Media Library, Install & Activate Advanced Post Creation Add-On | |
* use GF-Upload-Field > Perk > Upload to Media Libray checkbox:true | |
* at Post Creation > Feed Settings => dont use Media Library (empty Select File Upload Fields) |