# Add custom condition to the listing flow

**URL:** <https://community.hivepress.io/t/add-custom-condition-to-the-listing-flow/17859>\
**Category:** HivePress\
**Tags:** code\
**Created:** [July 23, 2026, 7:06pm UTC](https://community.hivepress.io/t/add-custom-condition-to-the-listing-flow/17859 "2026-07-23T19:06:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shayanreyes](https://community.hivepress.io/user_avatar/community.hivepress.io/shayanreyes/32/12817_2.png) [@shayanreyes](https://community.hivepress.io/u/shayanreyes)\
**Post date:** [July 23, 2026, 7:06pm UTC](https://community.hivepress.io/t/add-custom-condition-to-the-listing-flow/17859/1 "2026-07-23T19:06:23Z")

</div>

Hi, I know native KYC integration is still on the roadmap (referencing [this thread](https://community.hivepress.io/t/integrate-vendor-user-kyc/728)). In the meantime I already have manual document verification working via a custom Attachment attribute + admin review.

What I need is the gating logic: how can I hook into the listing submission / application flow to check a vendor/user attribute value (e.g. `verification_status == verified`) and redirect unverified users to a notice/verification page if it’s not set?

Is there a documented hook (`hivepress/v1/models/...` or template override) for this, or does it require overriding a controller method? A pointer to the right hook name would be enough — I can build the conditional logic myself.

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [July 24, 2026, 3:34pm UTC](https://community.hivepress.io/t/add-custom-condition-to-the-listing-flow/17859/2 "2026-07-24T15:34:23Z")

</div>

Hi,

If you mean adding a custom condition to detect a listing page and redirect users when the condition isn’t met, here’s a simple example snippet:

```auto
add_action(
	'template_redirect',
	function() {
		if ( hivepress()->router->get_current_route_name() !== 'listing_submit_details_page' ) {
			return;
		}

		// add custom logic here
		$verified = false;

		if ( ! $verified ) {
			wp_safe_redirect( home_url( '/custom-page-slug' ) );

			exit;
		}
	}
);

```

Hope this helps and wishing you a relaxing weekend.

P.S. I hope you don’t mind that I created a separate topic for your request. This makes it easier for other users to find the solution if they’re looking for the same functionality in the future.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [August 23, 2026, 3:35pm UTC](https://community.hivepress.io/t/add-custom-condition-to-the-listing-flow/17859/3 "2026-08-23T15:35:19Z")

</div>

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