replaced current_user_can function with WordPress Check User Role Function from AppTheme