Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 2.41 KB

README.md

File metadata and controls

55 lines (43 loc) · 2.41 KB

WordPress Money

codecov Coverage Status

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

Pronamic - Work with us