I have a plugin, in this case it's Woocommerce Product Add-on which has an ability to allow folks to upload a file for the item being purchased. However, there is no restriction and I'm looking for a way to restrict.
Since all plugins are handled by Wordpress natively, how can I utilize the wp_handle_upload(
) and wp_max_upload_size()
fuctions to control/restrict file uploads? I would very much like some direction please!