Hello wpForo Support Team,
I am currently using wpForo alongside the wpForo Advanced Attachments addon. For cloud storage delivery, I use the WP Offload Media plugin connected to Amazon S3 and Cloudflare.
In the core wpForo settings, I have enabled the option "Insert Forum Attachments to Media Library". However, because I am using the Advanced Attachments addon, the files skip the standard WordPress Media Library upload hooks and go directly into the custom /wp-content/uploads/wpforo/ folder structure. As a result, WP Offload Media cannot detect the files to offload them to S3.
Could you please guide me on the correct action hook or filter to use specifically for the Advanced Attachments addon? I want to create a custom function that programmatically registers the files into the WordPress Media Library (wp_insert_attachment) the moment they are successfully attached to a post/topic, so that third-party offloading plugins can intercept them.
Any code snippets or specific hook recommendations (e.g., an AJAX-safe upload hook tailored to the addon) would be greatly appreciated.
Thank you for your time and excellent plugins!
