roles ) && is_array( $user->roles ) ) { // check for admins if ( in_array( 'administrator', $user->roles ) ) { // redirect them to the default place return $redirect_to; } else { return home_url(); } } else { return $redirect_to; } }

Hot fill guard

If the customer is filling products that require a hot process then a hot fill guard should be supplied to protect the operator during the filling cycle.