classes/PodsAdmin.php
public function admin_setup_duplicate( $obj ) {

		$new_id = pods_api()->duplicate_pod( array( 'id' => $obj->id ) );

		if ( 0 < $new_id ) {
			pods_redirect(
				pods_query_arg(
					array(
						'action' => 'edit',
						'id'     => $new_id,
						'do'     => 'duplicate',
					)
				)
			);
		}
	}
public function admin_setup_duplicate( $obj ) {

		$new_id = pods_api()->duplicate_pod( array( 'id' => $obj->id ) );

		if ( 0 < $new_id ) {
			pods_redirect(
				pods_query_arg(
					array(
						'action' => 'edit',
						'id'     => $new_id,
						'do'     => 'duplicate',
					)
				)
			);
		}
	}
public function admin_setup_duplicate ( $ obj ) { $ new_id = pods_api ( ) -> duplicate_pod ( array ( 'id' => $ obj -> id ) ) ; if ( 0 < $ new_id ) { pods_redirect ( pods_query_arg ( array ( 'action' => 'edit' , 'id' => $ new_id , 'do' => 'duplicate' , ) ) ) ; } }
Duplicate a pod

@param PodsUI $obj PodsUI object.
Duplicate a pod