Last active
August 9, 2017 08:38
-
-
Save bencooling/3990625 to your computer and use it in GitHub Desktop.
Prevent Authors from seeing other authors media files
As hlotvonen said, this code seems to conflict ACF .
So I recommend you to add .
if($wp_query->query_vars['post_type']!=='attachment'){ return; }
Regards.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am already upgrade wordpress to latest version , and as administrator I can see all images.
Your code running.
Thanks