pronamic/wp-money

WordPress Money library.

1.2.4 2020-02-03 15:12 UTC

This package is auto-updated.

Last update: 2020-05-05 11:42:24 UTC


README

Non-breaking space

In the money format it is smart to use a non-breaking space:

In word processing and digital typesetting, a non-breaking space (" "), also called no-break space, non-breakable space (NBSP), hard space, or fixed space, is a space character that prevents an automatic line break at its position.

Source: https://en.wikipedia.org/wiki/Non-breaking_space#Keyboard_entry_method

WordPress Filters

pronamic_money_default_format

function prefix_pronamic_money_default_format( $format ) {
	/* translators: 1: currency symbol, 2: amount, 3: currency code */
	return _x( '%1$s%2$s', 'default money format', 'pronamic-ideal' );
}

add_filter( 'pronamic_money_default_format', 'prefix_pronamic_money_default_format' );

Inspiration