pronamic/wp-gravityforms-nl

WordPress Gravity Forms (nl) library.

Installs: 23 830

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 7

Forks: 2

Open Issues: 0

Type:wordpress-plugin

v3.0.9 2024-03-26 12:38 UTC

This package is auto-updated.

Last update: 2024-11-13 08:41:38 UTC


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' );