Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Extending BB_Locale

Well, just to tell anyone who – in the future – might be stuck on the same or a similar problem.

I went with the following workaround:

Find a hook (action/filter) that gets called early in the process like bb_location.

Define a filter function for it.

In that function, add the following peace of code.

global $bb_locale;

$bb_locale->datetime_formatstring = __(‘j M, Y’);

Obviously, you can call your time format something else.

Not the prettiest of solutions, but it works and I get to keep my bb_press installation free of code that I’ll surely forget to update.

Skip to toolbar