pronamic/wp-money

WordPress Money library.

Installs: 112 003

Dependents: 15

Suggesters: 0

Security: 0

Stars: 5

Watchers: 7

Forks: 1

Open Issues: 3

Type:wordpress-plugin

v2.4.3 2023-11-06 14:07 UTC

This package is auto-updated.

Last update: 2024-03-06 15:00:55 UTC


README

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