__(): What if I have to pass in a variable?

You can do it with printf().

E.g.

printf( __( 'We deleted %d spam messages.', 'my-text-domain' ), $count );

Leave a Comment