classes/Pods.php
public function first_id( $params_override = null ) {

		$params = array(
			'select'  => "`t`.`{$this->data->field_id}`",
			'orderby' => "`t`.`{$this->data->field_id}` ASC",
			'limit'   => 1,
		);

		if ( ! empty( $params_override ) || ! empty( $this->params ) ) {
			if ( ! empty( $params_override ) ) {
				$params = $params_override;
			} elseif ( ! empty( $this->params ) ) {
				$params = $this->params;
			}

			if ( is_object( $params ) ) {
				$params = get_object_vars( $params );
			}

			$params['select'] = "`t`.`{$this->data->field_id}`";
			$params['offset'] = 0;
			$params['limit']  = 1;
		}

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

		$new_id = 0;

		if ( $pod->fetch() ) {
			$new_id = $pod->id();
		}

		$new_id = $this->do_hook( 'first_id', $new_id, $pod, $params_override );

		return $new_id;
	}
public function first_id( $params_override = null ) {

		$params = array(
			'select'  => "`t`.`{$this->data->field_id}`",
			'orderby' => "`t`.`{$this->data->field_id}` ASC",
			'limit'   => 1,
		);

		if ( ! empty( $params_override ) || ! empty( $this->params ) ) {
			if ( ! empty( $params_override ) ) {
				$params = $params_override;
			} elseif ( ! empty( $this->params ) ) {
				$params = $this->params;
			}

			if ( is_object( $params ) ) {
				$params = get_object_vars( $params );
			}

			$params['select'] = "`t`.`{$this->data->field_id}`";
			$params['offset'] = 0;
			$params['limit']  = 1;
		}

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

		$new_id = 0;

		if ( $pod->fetch() ) {
			$new_id = $pod->id();
		}

		$new_id = $this->do_hook( 'first_id', $new_id, $pod, $params_override );

		return $new_id;
	}
public function first_id ( $ params_override = null ) { $ params = array ( 'select' => "`t`.`{$this->data->field_id}`" , 'orderby' => "`t`.`{$this->data->field_id}` ASC" , 'limit' => 1 , ) ; if ( ! empty ( $ params_override ) || ! empty ( $ this -> params ) ) { if ( ! empty ( $ params_override ) ) { $ params = $ params_override ; } elseif ( ! empty ( $ this -> params ) ) { $ params = $ this -> params ; } if ( is_object ( $ params ) ) { $ params = get_object_vars ( $ params ) ; } $ params [ 'select' ] = "`t`.`{$this->data->field_id}`" ; $ params [ 'offset' ] = 0 ; $ params [ 'limit' ] = 1 ; } $ pod = pods ( $ this -> pod , $ params ) ; $ new_id = 0 ; if ( $ pod -> fetch ( ) ) { $ new_id = $ pod -> id ( ) ; } $ new_id = $ this -> do_hook ( 'first_id' , $ new_id , $ pod , $ params_override ) ; return $ new_id ; }
Return the first item ID

@param array|object|null $params_override Override the find() parameters.

@return int
@since 2.3.0
Return the first item ID