Add description to country field for stripe

Hello Hivepress Team!

How can I add a description to a country dropdown menu for stripe?

Hi,

Please use this PHP snippet How to add custom code snippets - HivePress Help Center :

add_filter(
	'hivepress/v1/forms/user_update',
	function( $form ) {
		if(isset($form['fields']['country'])){
		  $form['fields']['country']['description'] = 'custom text here';
		}

		return $form;
	},
 1000
);

I believe this will be useful to you.

Love you guys!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.