Hello @welduae-1,
I’m glad that the plugin is useful for you.
This function in the future enhancements list (you can subscribe on it to stay tuned).
But at the moment you can use the dco_ca_disable_attachment_field filter.
For example, this snippet disable the attachment field for all users except users with the “Author” role:
$user = wp_get_current_user();
if ( ! is_user_logged_in() || ! in_array( 'author', (array) $user->roles ) ) {
add_filter( 'dco_ca_disable_attachment_field', '__return_true');
}
Marking as resolved. Feel free to reopen this topic, or create a new one if you have another questions.