classes/PodsAPI.php
public function get_pod_type_count( $type ) {

		$args = array(
			'post_type'      => '_pods_pod',
			'posts_per_page' => - 1,
			'nopaging'       => true,
			'fields'         => 'ids',
			'meta_query'     => array(
				array(
					'key'   => 'type',
					'value' => $type,
				),
			),
		);

		$posts = get_posts( $args );

		$total = count( $posts );

		return $total;

	}
public function get_pod_type_count( $type ) {

		$args = array(
			'post_type'      => '_pods_pod',
			'posts_per_page' => - 1,
			'nopaging'       => true,
			'fields'         => 'ids',
			'meta_query'     => array(
				array(
					'key'   => 'type',
					'value' => $type,
				),
			),
		);

		$posts = get_posts( $args );

		$total = count( $posts );

		return $total;

	}
public function get_pod_type_count ( $ type ) { $ args = array ( 'post_type' => '_pods_pod' , 'posts_per_page' => - 1 , 'nopaging' => true , 'fields' => 'ids' , 'meta_query' => array ( array ( 'key' => 'type' , 'value' => $ type , ) , ) , ) ; $ posts = get_posts ( $ args ) ; $ total = count ( $ posts ) ; return $ total ; }
Get number of pods for a specific pod type

@param string $type Type to get count

@return int Total number of pods for a type

@since 2.6.6
Get number of pods for a specific pod type