Pre-defined Extras in Listing form

Hi there,
I found this snippet from a 2022 thread, but it’s not working for me. Has something changed since then that makes this snippet no longer work?

Snippet:

add_action(
	'hivepress/v1/models/listing/create', 
	function($listing_id, $listing) {
		$listing->set_price_extras([['name' => 'Test', 'price' => 100]])->save_price_extras();
	},
	1000,
	2
);

Hi,

If you purchased a theme or extension, please enter the license key in the forum profile settings, this will enable the Premium Support badge and ensure a 24-hour turnaround time.