There’re API hooks you can use for this purpose:

add_action( 'hivepress/v1/models/listing/create', 'send_newsletter' );
add_action( 'hivepress/v1/models/listing/update', 'send_newsletter' );

function send_newsletter( $listing_id ) {
	// do something...

This function will be called on each listing creating and update, but please note that it will be called even if someone just click the “Save Changes” button in the listing form.


Sign In

Don't have an account? Register

Forgot password?


Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.