How to hook some Unicode texts into calendar widget safely?

Assuming you mean the default calendar widget, you really have two choices:

  1. Wildly complicated regex
  2. Or make your own widget.

I would opt for #2, the meat of which is actually the get_calendar function. Clone that function and alter the dates as you need to.

This is assuming that there is no proper localized version of WordPress for your language– see @birgire’s comment.

Leave a Comment