classes/PodsRESTHandlers.php
protected static function get_pod( $pod_name, $id ) {

		if ( ! self::$pod || self::$pod->pod !== $pod_name ) {
			self::$pod = pods( $pod_name, $id, true );
		}

		if ( self::$pod && (int) self::$pod->id !== (int) $id ) {
			self::$pod->fetch( $id );
		}

		return self::$pod;

	}
protected static function get_pod( $pod_name, $id ) {

		if ( ! self::$pod || self::$pod->pod !== $pod_name ) {
			self::$pod = pods( $pod_name, $id, true );
		}

		if ( self::$pod && (int) self::$pod->id !== (int) $id ) {
			self::$pod->fetch( $id );
		}

		return self::$pod;

	}
protected static function get_pod ( $ pod_name , $ id ) { if ( ! self :: $ pod || self :: $ pod -> pod !== $ pod_name ) { self :: $ pod = pods ( $ pod_name , $ id , true ) ; } if ( self :: $ pod && ( int ) self :: $ pod -> id !== ( int ) $ id ) { self :: $ pod -> fetch ( $ id ) ; } return self :: $ pod ; }
Get Pod object

@since 2.5.6

@param $pod_name
@param $id

@return bool|Pods
Get Pod object