pronamic / wp-gravityforms-nl
WordPress Gravity Forms (nl) library.
Installs: 24 785
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 7
Forks: 2
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >=8.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8
- koodimonni-language/core-nl_nl: *
- php-coveralls/php-coveralls: ^2.7
- phpmd/phpmd: ^2.15
- phpstan/phpstan: ^1.11
- pronamic/pronamic-cli: ^1.1
- pronamic/wp-coding-standards: ^2.2
- roots/wordpress: ^6.4
- szepeviktor/phpstan-wordpress: ^1.3
- vimeo/psalm: ^5.25
- wp-phpunit/wp-phpunit: ^6.4
- yoast/phpunit-polyfills: ^2.0
README
This WordPress plugin extends Gravity Forms with Dutch address notation and places the Euro sign to the left of input fields.
WordPress Filters
pronamic_gravityforms_nl_address_label
function prefix_pronamic_gravityforms_nl_address_label( $label ) { return _x( 'Dutch', 'Dutch address type', 'pronamic_ideal' ); } add_filter( 'pronamic_gravityforms_nl_address_label', 'prefix_pronamic_gravityforms_nl_address_label' );
pronamic_gravityforms_nl_address_country
function prefix_pronamic_gravityforms_nl_address_country( $country ) { return _x( 'Netherlands', 'Dutch address type', 'pronamic_ideal' ); } add_filter( 'pronamic_gravityforms_nl_address_country', 'prefix_pronamic_gravityforms_nl_address_country' );
pronamic_gravityforms_nl_address_zip_label
function prefix_pronamic_gravityforms_nl_address_zip_label( $zip_label ) { return _x( 'Postal Code', 'Dutch address type', 'pronamic_ideal' ); } add_filter( 'pronamic_gravityforms_nl_address_zip_label', 'prefix_pronamic_gravityforms_nl_address_zip_label' );
pronamic_gravityforms_nl_address_state_label
function prefix_pronamic_gravityforms_nl_address_state_label( $state_label ) { return _x( 'Province', 'Dutch address type', 'pronamic_ideal' ); } add_filter( 'pronamic_gravityforms_nl_address_state_label', 'prefix_pronamic_gravityforms_nl_address_state_label' );
pronamic_gravityforms_nl_address_states
function prefix_pronamic_gravityforms_nl_address_states( $states ) { return array( __( 'Drenthe', 'pronamic_ideal' ), __( 'Flevoland', 'pronamic_ideal' ), __( 'Friesland', 'pronamic_ideal' ), __( 'Gelderland', 'pronamic_ideal' ), __( 'Groningen', 'pronamic_ideal' ), __( 'Limburg', 'pronamic_ideal' ), __( 'Noord-Brabant', 'pronamic_ideal' ), __( 'Noord-Holland', 'pronamic_ideal' ), __( 'Overijssel', 'pronamic_ideal' ), __( 'Utrecht', 'pronamic_ideal' ), __( 'Zeeland', 'pronamic_ideal' ), __( 'Zuid-Holland', 'pronamic_ideal' ), ); } add_filter( 'pronamic_gravityforms_nl_address_states', 'prefix_pronamic_gravityforms_nl_address_states' );