Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.



Description Description

Checks if there are any vehicle posts saved in the site.

Top ↑

Return Return

(bool) True if there are vehicle posts of any status

Top ↑

Source Source

File: includes/class-uninstaller.php

	private function have_vehicles()
		return 0 < sizeof( get_posts( array(
			'post_type'   => INVP::POST_TYPE,
			'post_status' => get_post_stati(),
		) ) );