invp_get_the_payment( int|null $post_ID = null )

invp_get_the_payment


Parameters Parameters

$post_ID

(int|null) (Optional) The post ID of a vehicle. Must be passed when using this method outside the loop.

Default value: null


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/template-tags.php

				'meta_key'       => apply_filters( 'invp_prefix_meta_key', 'photo_number' ),
				'posts_per_page' => apply_filters( 'invp_query_limit', 1000, __FUNCTION__ ),
				'order'          => 'ASC',
				'orderby'        => 'meta_value_num',
				'post_mime_type' => 'image',
				'post_parent'    => $post_ID,
				'post_status'    => 'inherit',
				'post_type'      => 'attachment',
			)
		);
	}

	// Did we find any photos?
	if ( empty( $images ) ) {
		/**
		 * No. Perhaps this vehicle has attachments, but they don't have our