Make validation needed only for the first listing

iI there a way to oblige the validation for only the FIRST listing and after not anymore ? I mean the problem is that in my case I’m using your system as an e-learning platform and I don’t want to have to validate and to approve every class that my teachers will create, but I do want to validate every teacher profile that gets created. Is there a way to do this please?
Thanks a lot

Please try this PHP snippet. It should disable moderation if at least 1 listing is added previously:

add_filter(
	'option_hp_listing_enable_moderation',
	function( $value ) {
		if ( ! is_admin() && hivepress()->request->get_context( 'listing_count' ) ) {
			return false;
		}

		return $value;
	}
);
3 Likes

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