• Resolved Sohail Ahmed

    (@gossdhosting)


    Hello,

    Is it possible to exlude images based on user roles? We want to exclude images uploaded by admin. Our website has services for guest posting, for the same, we want to optimize images only for other users apart from admin. Is this possible?

Viewing 1 replies (of 1 total)
  • Plugin Author kubiq

    (@kubiq)

    Hello,

    there is no ready-made solution, but you can ask any developer that works with WP and he will be able to solve that easily…

    There is a standard hook mechanism, so you can theoretically remove filter wp_update_attachment_metadata with priority 77 or you can use documented filter for itw_sizes to remove everything based on the user role… there are more ways how to achieve this, but I’ve never received such a request before, so I don’t have any tested / working code for that.

    Good luck!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.