Thanks everyone for the community support. Great to see fellow Give users helping each other out!
I do want to chime in and provide a more best practices approach to making this update. Changing the core Give files will mean you lose your changes in every plugin update. Instead of that, use this filter:
add_filter('give_ireland_states', 'custom_give_ireland_states');
function custom_give_ireland_states() {
$states = array(
'' => '',
'AN' => __( 'Antrim', 'give' ),
'AR' => __( 'Armagh', 'give' ),
'CE' => __( 'Clare', 'give' ),
'CK' => __( 'Cork', 'give' ),
'CN' => __( 'Cavan', 'give' ),
'CW' => __( 'Carlow', 'give' ),
'DL' => __( 'Donegal', 'give' ),
'DN' => __( 'Dublin', 'give' ),
'DO' => __( 'Down', 'give' ),
'DY' => __( 'Derry', 'give' ),
'FM' => __( 'Fermanagh', 'give' ),
'GY' => __( 'Galway', 'give' ),
'KE' => __( 'Kildare', 'give' ),
'KK' => __( 'Kilkenny', 'give' ),
'KY' => __( 'Kerry', 'give' ),
'LD' => __( 'Longford', 'give' ),
'LH' => __( 'Louth', 'give' ),
'LK' => __( 'Limerick', 'give' ),
'LM' => __( 'Leitrim', 'give' ),
'LS' => __( 'Laois', 'give' ),
'MH' => __( 'Meath', 'give' ),
'MN' => __( 'Monaghan', 'give' ),
'MO' => __( 'Mayo', 'give' ),
'OY' => __( 'Offaly', 'give' ),
'RN' => __( 'Roscommon', 'give' ),
'SO' => __( 'Sligo', 'give' ),
'TR' => __( 'Tyrone', 'give' ),
'TY' => __( 'Tipperary', 'give' ),
'WD' => __( 'Waterford', 'give' ),
'WH' => __( 'Westmeath', 'give' ),
'WW' => __( 'Wicklow', 'give' ),
'WX' => __( 'Wexford', 'give' ),
);
return $states;
}
If you need guidance implementing custom PHP functions on your website, we have this guide here: https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/
Lastly, I also created an issue for our devteam to resolve this issue so you won’t have to worry about updating the files OR using the snippet either in the future. You can track our progress on that here:
https://github.com/impress-org/give/issues/4145
Thanks!