classes/fields/pick.php
public function admin_modal_bail_user_redirect( $location ) {

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

		global $user_id;

		$user = get_userdata( $user_id );

		if ( ! $user || is_wp_error( $user ) ) {
			return $location;
		}

		$field_args = (object) array(
			'options' => array(
				'pick_object' => 'user',
				'pick_val'    => '',
			),
			'value'   => array(
				$user->ID => $user->display_name,
			),
		);

		$this->admin_modal_bail( $user->ID, $user->display_name, $field_args );

		return $location;

	}
public function admin_modal_bail_user_redirect( $location ) {

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

		global $user_id;

		$user = get_userdata( $user_id );

		if ( ! $user || is_wp_error( $user ) ) {
			return $location;
		}

		$field_args = (object) array(
			'options' => array(
				'pick_object' => 'user',
				'pick_val'    => '',
			),
			'value'   => array(
				$user->ID => $user->display_name,
			),
		);

		$this->admin_modal_bail( $user->ID, $user->display_name, $field_args );

		return $location;

	}
public function admin_modal_bail_user_redirect ( $ location ) { if ( ! pods_is_modal_window ( ) ) { return $ location ; } global $ user_id ; $ user = get_userdata ( $ user_id ) ; if ( ! $ user || is_wp_error ( $ user ) ) { return $ location ; } $ field_args = ( object ) array ( 'options' => array ( 'pick_object' => 'user' , 'pick_val' => '' , ) , 'value' => array ( $ user -> ID => $ user -> display_name , ) , ) ; $ this -> admin_modal_bail ( $ user -> ID , $ user -> display_name , $ field_args ) ; return $ location ; }
Bail on User save redirect for Admin modal.

@param string $location The destination URL.

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