Translation: Register Listing Headline to be different when adding Adress Details

When registering Listing the Headline “Register a listing” is correct.
We have changed the Workflow slightly and if someone requests a listing he/she needs to put in adress details. Here the Headline “Register a listing” needs to be different. Is there any Snippet I can use to change it?

Please try this PHP snippet to change the title on the booking make page

add_filter(
	'hivepress/v1/routes',
	function( $routes ) {
		if(isset($routes['booking_make_details_page'])){
			$routes['booking_make_details_page']['title'] = 'Your custom text';
		}

		return $routes;
	},
	1000
);