No admin access to wordpress site user

Just put this code to restrict general wordpress users to wp-admin. Below is the code to add in functions.php of your current themes.

I'm a web developer / PHP programmer. I am also working on custom plugin development of wordpress.