Function Reference: geodir_delete_claim_listing_info

Summary

This function has not been documented yet.

Source Code

function geodir_delete_claim_listing_info($deleted_postid, $force = false){
	
	global $wpdb;
	
	$post_type = get_post_type( $deleted_postid );
	
	$all_postypes = geodir_get_posttypes();
	
	if(!in_array($post_type, $all_postypes))
		return false;
	
	$wpdb->query($wpdb->prepare("DELETE FROM ".GEODIR_CLAIM_TABLE." WHERE list_id=%s", array($deleted_postid)));
	
}