mikebeach.org
Determine if current user is an admin in WordPress using PHP
You can determine if the current logged-in WordPress user is an admin and take a certain action in WordPress using PHP. If you’re using a PHP widget plugin, you can use this code in a PHP wid…