src/WPametu/UI/Field/TokenInputPost.php
protected function get_prepopulates($data){
        $json = [];
        foreach( $data as $post ){
            $json[]  = [
                'id' => $post->ID,
                'name' => $post->post_title,
            ];
        }
        return $json;
    }
protected function get_prepopulates($data){
        $json = [];
        foreach( $data as $post ){
            $json[]  = [
                'id' => $post->ID,
                'name' => $post->post_title,
            ];
        }
        return $json;
    }
protected function get_prepopulates ( $ data ) { $ json = [ ] ; foreach ( $ data as $ post ) { $ json [ ] = [ 'id' => $ post -> ID , 'name' => $ post -> post_title , ] ; } return $ json ; }
Get prepopulated data

@param array $data
@return array
Get prepopulated data