• Hello,
    I want to ask how can i remove functionality of deleting images by user below admin. I want them to upload images and delete only those that are uploaded by them. They cant delete images uploaded by another user.

    I used this code to provide functionality to other users

    if ( current_user_can(‘customer’) && !current_user_can(‘upload_files’) )
    add_action(‘admin_init’, ‘allow_customer_uploads’);

    function allow_customer_uploads() {
    $customer = get_role(‘customer’);
    $customer->add_cap(‘upload_files’);
    }

    I want them only to upload and delete there images not other users.

    Please suggest me something.

  • The topic ‘Remove Functionality of deleting images by users lower then Admin’ is closed to new replies.