classes/Pods.php
public function duplicate( $id = null ) {

		if ( null === $id ) {
			$id = $this->id();
		}

		$id = (int) $this->do_hook( 'duplicate', $id );

		if ( empty( $id ) ) {
			return false;
		}

		$params = array(
			'pod' => $this->pod,
			'id'  => $id,
		);

		return $this->api->duplicate_pod_item( $params );
	}
public function duplicate( $id = null ) {

		if ( null === $id ) {
			$id = $this->id();
		}

		$id = (int) $this->do_hook( 'duplicate', $id );

		if ( empty( $id ) ) {
			return false;
		}

		$params = array(
			'pod' => $this->pod,
			'id'  => $id,
		);

		return $this->api->duplicate_pod_item( $params );
	}
public function duplicate ( $ id = null ) { if ( null === $ id ) { $ id = $ this -> id ( ) ; } $ id = ( int ) $ this -> do_hook ( 'duplicate' , $ id ) ; if ( empty ( $ id ) ) { return false ; } $ params = array ( 'pod' => $ this -> pod , 'id' => $ id , ) ; return $ this -> api -> duplicate_pod_item ( $ params ) ; }
Duplicate an item

@see   PodsAPI::duplicate_pod_item

@param int $id ID of the pod item to duplicate.

@return int|bool ID of the new pod item

@since 2.0.0
@link  https://pods.io/docs/duplicate/
Duplicate an item