Allow WP permissions to user ID XX which in turn removes it from everyone else

[ad_1]

I came accross some code to add to functions.php where it granted permissions to a certain user ID, and everyone else it was removed. I lost that link and cannot find it. Does anyone know what I am talking about and how to do it? Seems like the best way to lock down your site when you have many Authors, Editors and other Admins.

Thanks in advance.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer