Update code snippet for invoice indicator with WordPress action