Adding custom code to WordPress
-
Hi,
I am new to customising WordPress.
I want to create a guest user account that basically have all the access except for seeing the Users menu.I’ve found this page on the function that will do the job but have not sure where to put the code to run it.
https://codex.wordpress.org/Function_Reference/remove_cap
Can anyone please tell me where to write this code and how to run it?
I’ve read that maybe creating a page template?
But I think I only need to do this once and that specific user will have no access to the Users menu.Or should remove that capability from the db?
Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Adding custom code to WordPress’ is closed to new replies.