示例#1
0
文件: admin.php 项目: AndyA/River
  ?>
    <?php 
  WCM_Table::name_box($item);
  ?>
    <td class="td_center">
      <?php 
  if ($product_type == 'variable') {
      echo '<span class="btn btn-info btn-sm show-variable" data-variable="' . $item->ID . '">' . __('Show variables', 'stock-manager') . '</span>';
  } else {
      echo $product_type;
  }
  ?>
    </td>
    <td></td>
    <?php 
  WCM_Table::table_simple_line($product_meta, $item);
  ?>
    <?php 
  do_action('stock_manager_table_simple_td', $item->ID);
  ?>
    <?php 
  WCM_Table::line_nonce_box($item);
  ?>
    <?php 
  WCM_Table::line_save_box($item);
  ?>
 </tr>
  
  <?php 
  if ($product_type == 'variable') {
      $args = array('post_parent' => $item->ID, 'post_type' => 'product_variation', 'numberposts' => -1, 'post_status' => 'publish');