classes/fields/pick.php
public function admin_modal_bail_post_redirect( $location, $post_id ) {

		if ( ! pods_is_modal_window() ) {
			return $location;
		}

		$post_title = get_the_title( $post_id );

		$field_args = (object) array(
			'options' => array(
				'pick_object' => 'post_type',
				'pick_val'    => get_post_type( $post_id ),
			),
			'value'   => array(
				$post_id => $post_title,
			),
		);

		$this->admin_modal_bail( $post_id, $post_title, $field_args );

		return $location;

	}
public function admin_modal_bail_post_redirect( $location, $post_id ) {

		if ( ! pods_is_modal_window() ) {
			return $location;
		}

		$post_title = get_the_title( $post_id );

		$field_args = (object) array(
			'options' => array(
				'pick_object' => 'post_type',
				'pick_val'    => get_post_type( $post_id ),
			),
			'value'   => array(
				$post_id => $post_title,
			),
		);

		$this->admin_modal_bail( $post_id, $post_title, $field_args );

		return $location;

	}
public function admin_modal_bail_post_redirect ( $ location , $ post_id ) { if ( ! pods_is_modal_window ( ) ) { return $ location ; } $ post_title = get_the_title ( $ post_id ) ; $ field_args = ( object ) array ( 'options' => array ( 'pick_object' => 'post_type' , 'pick_val' => get_post_type ( $ post_id ) , ) , 'value' => array ( $ post_id => $ post_title , ) , ) ; $ this -> admin_modal_bail ( $ post_id , $ post_title , $ field_args ) ; return $ location ; }
Bail on Post save redirect for Admin modal.

@param string $location The destination URL.
@param int    $post_id  The post ID.

@return string
Bail on Post save redirect for Admin modal .