Following Script can help you.
if( !function_exists( 'ultraaddons_arg_manipulation' ) ){
/**
* Getting SKU by shortcode Attribute
* and I have explode skus by explode and
* find out product id
* and finally I make a array of product ids
*
* @param type $args
* @param type $table_ID
* @param type $atts
* @return Array
*/
function ultraaddons_arg_manipulation( $args, $table_ID, $atts ) {
//var_dump($args, $table_ID, $atts);
$skus = $atts['skus'];
$skus = explode(',', $skus);
if( is_array( $skus ) ){
$prds = array();
foreach( $skus as $sku ){
$prds[] = wc_get_product_id_by_sku( $sku );
}
$args['post__in'] = $prds;
}
return $args;
}
}
add_filter( 'wpto_table_query_args', 'ultraaddons_arg_manipulation', 10, 3 );