Hello @synetech,
Thank you for the idea. I added it to the list of future enhancements.
At the moment, you can restrict uploading attachments for anonymous users using this snippet:
if( ! is_user_logged_in() ) {
add_filter( 'dco_ca_disable_attachment_field', '__return_true');
}
Agree with Synetech: risky to let anyone post any attachment. As I am not php-skilled: where (file, location) do I add the snippet given ?
( lol to me the snippet reads as disabling logged-in users from adding attachments)
-
This reply was modified 6 years, 2 months ago by
idasilver.
Hello @idasilver,
For support requests, please create a new topic in the support section.
where (file, location) do I add the snippet given ?
You can add this snippet into functions.php file of your active theme or add it in your custom plugin or use special plugins, such as, Code Snippets.
The feature for restrict uploading attachments only to logged users avaliable at version 1.3.0.