2023-12-07, 11:38 AM
You got to hook to
I did this in a plugin but couldn't find it for you, but probably a close reference could be the following :
https://github.com/Sama34/OUGC-Custom-Re...p.php#L790
attachment_start
(attachment.php), find whatever is inside the hide tag, then check if the attachment being fetched is found within such content. Ultimately block the attachment if the user has no permission to see it.I did this in a plugin but couldn't find it for you, but probably a close reference could be the following :
https://github.com/Sama34/OUGC-Custom-Re...p.php#L790