New Listing Notification email address

Hi there Team HP

I refer a GitHub snippet titled Change the recipient email address for new listing notifications #hivepress #listings Change the recipient email address for new listing notifications #hivepress #listings

add_filter(
	'hivepress/v1/emails/listing_submit',
	function( $email ) {
		$email['recipient'] = 'notifications@munhcies4u.co.za',

		return $email;
	},
  1000
);

However when saving the snippet I get error We encountered an error activating your snippet, please check the syntax and try again. Error message: syntax error, unexpected token ,

Any help please? :thinking:

Hi,

Please use this PHP snippet:

add_filter(
	'hivepress/v1/emails/listing_submit',
	function( $email ) {
		$email['recipient'] = 'notifications@munhcies4u.co.za';

		return $email;
	},
  1000
);

Thank you for letting us know, we will fix it in the collection.

THANKS Andrii! :upside_down_face:

It took me a while to notice the difference, but eventually I saw the β€œ,” that’s been replaced with a β€œ;”.
A small typo it is, but after a day staring at monitors, nobodies eyes are all that bright anymore.

1 Like

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