I came up with this…I changed input fields to
<input type="checkbox" id="%2$s" name="post[%2$s][]" value="%2$s" />
<input type="checkbox" id="image_%3$s" name="post[%3$s][]" value="%2$s" />'
…and added third parameter to column_image function ($item[‘ID’])
function column_image($item){
return sprintf(
'<input type="checkbox" id="image_%3$s" name="post[%3$s][]" value="%2$s" />',
/*$1%s*/ $this->_args['singular'],
/*$2%s*/ 'yes',
/*$3%s*/ $item['ID']
);
}
and with that I get array which use post ID as index, for example
[post] => Array (
[6238] => Array ( [0] => 6238 [1] => yes )
[6230] => Array ( [0] => 6230 )
[6224] => Array ( [0] => 6224 [1] => yes )
)