PHP code example of pronamic / wp-gravityforms-nl
1. Go to this page and download the library: Download pronamic/wp-gravityforms-nl library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pronamic / wp-gravityforms-nl example snippets
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' );
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' );
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' );
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' );
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' );