classes/PodsAPI.php
public function load_pod_item( $params ) {

		$params = (object) pods_sanitize( $params );

		if ( ! isset( $params->pod ) || empty( $params->pod ) ) {
			return pods_error( __( 'Pod name required', 'pods' ), $this );
		}
		if ( ! isset( $params->id ) || empty( $params->id ) ) {
			return pods_error( __( 'Item ID required', 'pods' ), $this );
		}

		$pod = false;

		if ( pods_api_cache() ) {
			$pod = pods_cache_get( $params->id, 'pods_item_object_' . $params->pod );
		}

		if ( false !== $pod ) {
			return $pod;
		}

		$pod = pods( $params->pod, $params->id );

		if ( pods_api_cache() ) {
			pods_cache_set( $params->id, $pod, 'pods_item_object_' . $params->pod );
		}

		return $pod;
	}
public function load_pod_item( $params ) {

		$params = (object) pods_sanitize( $params );

		if ( ! isset( $params->pod ) || empty( $params->pod ) ) {
			return pods_error( __( 'Pod name required', 'pods' ), $this );
		}
		if ( ! isset( $params->id ) || empty( $params->id ) ) {
			return pods_error( __( 'Item ID required', 'pods' ), $this );
		}

		$pod = false;

		if ( pods_api_cache() ) {
			$pod = pods_cache_get( $params->id, 'pods_item_object_' . $params->pod );
		}

		if ( false !== $pod ) {
			return $pod;
		}

		$pod = pods( $params->pod, $params->id );

		if ( pods_api_cache() ) {
			pods_cache_set( $params->id, $pod, 'pods_item_object_' . $params->pod );
		}

		return $pod;
	}
public function load_pod_item ( $ params ) { $ params = ( object ) pods_sanitize ( $ params ) ; if ( ! isset ( $ params -> pod ) || empty ( $ params -> pod ) ) { return pods_error ( __ ( 'Pod name required' , 'pods' ) , $ this ) ; } if ( ! isset ( $ params -> id ) || empty ( $ params -> id ) ) { return pods_error ( __ ( 'Item ID required' , 'pods' ) , $ this ) ; } $ pod = false ; if ( pods_api_cache ( ) ) { $ pod = pods_cache_get ( $ params -> id , 'pods_item_object_' . $ params -> pod ) ; } if ( false !== $ pod ) { return $ pod ; } $ pod = pods ( $ params -> pod , $ params -> id ) ; if ( pods_api_cache ( ) ) { pods_cache_set ( $ params -> id , $ pod , 'pods_item_object_' . $ params -> pod ) ; } return $ pod ; }
Load the pod item object

$params['pod'] string The datatype name
$params['id'] int (optional) The item's ID

@param array $params An associative array of parameters

@return bool|\Pods

@uses  pods()

@since 2.0.0
Load the pod item object