Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Denis Yanchevskiy

    (@denisco)

    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');
    }
    Plugin Author Denis Yanchevskiy

    (@denisco)

    Marking as resolved. Feel free to reopen this topic, or create a new one if you have another questions.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Options per role’ is closed to new replies.