ihordeveloper

Sure, but with a code snippet, please try adding this code at the end of the child theme functions.php file (so updates will not erase it):

add_filter(
	'hivepress/v1/models/listing_claim/errors',
	function( $errors, $claim ) {
		if ( ! $claim->get_id() && empty( $errors ) && HivePress\Models\Listing_Claim::query()->filter(
			[
				'user' => $claim->get_user__id(),
			]
		)->get_first_id() ) {
			$errors[] = 'Add error message here.';
		}

		return $errors;
	},
	10,
	2
);

It will allow only one listing claim per account.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

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.

Cyber Monday is here! Get 25% off with MONDAY2020 coupon code until Monday, December 7.