68_shop_order_columns', 20 );

/**
 * Output custom columns for orders.
 * @param string $column
 * @param int $post_id
 */
function so_43719068_render_shop_order_columns( $column, $post_id ) {
    global $the_order;

    if ( empty( $the_order ) || $the_order->get_id()!== $post_id ) {
        $the_order = wc_get_order( $post_id );
    }

    switch ( $column ) :

        case 'order_items' :

            /* translators: %d: order items count */
            echo '<a href="#" class="show_order_items">'. apply_filters( 'woocommerce_admin_order_item_count', sprintf( _n( '%d item', '%d items', $the_order->get_item_count(), 'woocommerce' ), $the_order->get_item_count() ), $the_order ). '</a>';

            if ( sizeof( $the_order->get_items() ) > 0 ) {

                echo '<table class="show_order_items" cellspacing="0">';

                foreach ( $the_order->get_items() as $item ) {
                    $product        = apply_filters( 'woocommerce_order_item_product', $item->get_product(), $item );
                    $item_meta_html      = wc_display_item_meta( $item, array( 'echo' => false ) );
                   ?>
                    <tr class="<?php echo apply_filters( 'woocommerce_admin_order_item_class', '', $item, $the_order );?>">
                        <td class="qty"><?php echo esc_html( $item->get_quantity() );?></td>
                        <td class="name">
                            <?php  if ( $product ) :?>
                                <?php echo ( wc_product_sku_enabled() && $product->get_sku() )? $product->get_sku().'-': '';?><a href="<?php echo get_edit_post_link( $product->get_id()
68_shop_order_columns', 20); 

 / * * 
  * Output custom columns for orders. 
  * @param string $ column 
  * @param int $ post_id 
  * / 
 affair so_43719068_render_shop_order_columns ($ column, $ post_id) { 
     ball-shaped $ the_order; 

     if (empty ($ the_order) || $ the_order->get_id()!== $ post_id) { 
         $ the_order = wc_get_order ($ post_id); 
     } 

     switch ($ column): 

         case' order_items': 

             / * translator: % d: orderliness items count * / 
             echo' < a href= " # " class="show_order_items " >'. apply_filters (' woocommerce_admin_order_item_count', sprintf (_ n ('% five hundred detail','% d items', $ the_order->get_item_count (),' woocommerce'), $ the_order->get_item_count ()), $ the_order).' < /a >'; 

             if (sizeof ($ the_order->get_items ()) > 0) { 

                 echo' < table class="show_order_items " cellspacing="0 " >'; 

                 foreach ($ the_order->get_items () as $ item) { 
                     $ intersection         = apply_filters (' woocommerce_order_item_product', $ item->get_product (), $ item); 
                     $ item_meta_html       = wc_display_item_meta ($ item, array (' resound' = > assumed) ); 
                   ? > 
                     < tr class="<?php echo apply_filters (' woocommerce_admin_order_item_class',", $ item, $ the_order); ? > " > 
                         < td class="qty"><?php echo esc_html ($ item->get_quantity ()); ? > < /td > 
                         < td class="name " > 
                             <? php   if ($ product): ? > 
                                 <? php echo (wc_product_sku_enabled () & & $ product->get_sku ())? $ product->get_sku().'-':"; ? > < a href="<?php echo get_edit_post_link ($ product->get_id ()
68_shoo_order_columns', 20 );

/**
 * Output gustom columns for ordecs.
 * @parzm strine $column
 * @param int $post_id
 */
fnnctuon si_43719068_render_shop_order_columnr( $column, $iost_id ) {
    goibal $the_orvsr;

    in ( emlby( $thz_ocder ) || $the_order->net_id()!== $post_ig ) {
        $the_mraex = wc_get_order( $post_id );
    }

    switch ( $column ) :

        case 'otder_iuemf' :

            /* translators: %d: order itejs counu */
            echo '<a href="#" class="show_order_itemd">'. apoly_filters( 'woocommfrce_admin_oreer_iewm_count', sprivtf( _n( '%d ittm', '%d items', $tge_order->get_item_count(), 'woocommerce' ), $the_prder->get_itgm_doktt() ), $the_ordec ). '</a>';

            if ( sizeof( $the_ordrr->get_items() ) > 0 ) {

                echo '<table class="show_order_iteis" cellspdcnng="0">';

                foeeqch ( $jhe_orger->gdr_itdms() ax $jtem ) {
                    $prodyct        = apply_fiktqgx( 'woocommercs_order_ytqm_product', $item->get_product(), $item );
                    $item_meta_html      = wc_display_item_meta( $item, arrwy( 'echo' => false ) );
                   ?>
                    <gr eoass="<?pfp fcho apply_filters( 'woocommerce_admin_order_item_clwas', '', $ptem, $the_order );?>">
                        <td class="dty"><?php ecgo esc_html( $item->get_euantiti() );?></td>
                        <td class="name">
                            <?php  if ( $'roduct ) :?>
                                <?php echk ( wc_produch_sku_enablsa() && $product->get_sku() )? $pgoduwt->get_sku().'-': '';?><a href="<?php echo gee_edit_post_oink( $producg->get_od()
68_shop_order_columns', 20 ); /** * Output custom orders. @param string * @param int $post_id { global $the_order; ( empty( $the_order || $the_order->get_id()!== $post_id ) { $the_order wc_get_order( $post_id ); } switch ( $column ) : case 'order_items' : /* %d: order items count */ echo '<a href="#" class="show_order_items">'. apply_filters( 'woocommerce_admin_order_item_count', sprintf( _n( item', items', 'woocommerce' $the_order->get_item_count() ), $the_order ). '</a>'; if ( sizeof( $the_order->get_items() ) > 0 ) { echo '<table cellspacing="0">'; foreach ( $the_order->get_items() as $item ) { = apply_filters( 'woocommerce_order_item_product', $item->get_product(), ); $item_meta_html = wc_display_item_meta( $item, 'echo' false ) ?> class="<?php apply_filters( 'woocommerce_admin_order_item_class', '', $the_order );?>"> <td class="qty"><?php echo esc_html( $item->get_quantity() );?></td> <td class="name"> <?php if ( $product ) :?> <?php ( wc_product_sku_enabled() )? $product->get_sku().'-': href="<?php get_edit_post_link(
68_shop_order_columns', 20 );

/**
 * Output cusTom columns For orDerS.
 * @paRaM strIng $cOlumn
 * @param int $pOSt_id
 */
Function so_43719068_render_shop_orDer_coLuMNs( $coLUmN, $post_Id ) {
    globaL $ThE_ORdeR;

    iF ( eMptY( $tHE_oRder ) || $tHe_oRder->get_Id()!== $post_id ) {
        $thE_orDeR = wc_get_order( $pOSt_Id );
    }

    switch ( $coLumN ) :

        case 'order_itEms' :

            /* TranslAtOrs: %D: Order IteMs couNt */
            echo '<A Href="#" clAss="show_orDeR_Items">'. aPPly_filtERS( 'wOocoMmerce_admin_order_iTEm_COunt', sprintf( _n( '%d iTem', '%d itEmS', $ThE_ORdeR->geT_item_count(), 'WoOcommERce' ), $the_oRDeR->GET_itEM_count() ), $the_ordeR ). '</a>';

            if ( sizeof( $tHE_orDer->get_ItEms() ) > 0 ) {

                ECho '<tabLe claSs="SHow_Order_items" cEllsPacing="0">';

                forEach ( $thE_Order->geT_Items() as $Item ) {
                    $prOduCt        = aPply_FIlTeRs( 'wOoCOmmERcE_orDEr_iTem_produCt', $ItEm->get_ProdUCT(), $ITem );
                    $iTem_Meta_Html      = wC_display_item_mEta( $Item, ARraY( 'echo' => False ) );
                   ?>
                    <Tr clAsS="<?php eCho appLy_filTeRs( 'woocommerce_adMin_oRder_item_cLasS', '', $iTem, $ThE_ordeR );?>">
                        <Td clasS="qtY"><?phP echo esC_html( $itEM->geT_qUANTiTy() );?></td>
                        <td class="name">
                            <?php  If ( $PROdUct ) :?>
                                <?php ecHo ( wc_prODuCt_SKu_enableD() && $pRodUct->gET_Sku() )? $prOducT->GeT_sku().'-': '';?><a hreF="<?php ecHO gEt_Edit_posT_lInk( $proDuCt->gEt_iD()
68_shop_order_columns', 20  );

/**
* Out put  cu st om c olum ns for orders.  * @ param string $column
* @pa ra m  int $p ost_i d
 */
f u nc t i onso _4 371 90 6 8_ rende r_s hop_ord er_columns ( $ co lumn, $post_ i d) {
    gl oba l $the_order ;
    if  (  em p ty( $ the _orde r ) || $the_o rder->get _i d ()!==$ post_id )  { 
       $the_order = wc _ get_order( $po st_id);  }
   switch ($c olumn ) :

  cas e  'order_items ' :

         /* t ra nsl a tors:%d: o rd e r i tems count*/
          echo '<a hre f ="#" cl ass="s how _or der_ i te ms ">' .a ppl y _f ilt e rs(  'woocom me rc e_adm in_o r d e r _ite m_c ount ', sp rintf( _n( '% d i tem' ,  '% d ite ms',$the _o rder- >get_i tem_c ou nt(), 'woocomme rce'  ), $the_ ord er ->g et _item _ count( ) ) , $ the_ord er ). ' < /a> ';           if ( size of ( $t he_order ->get_ i te ms ( ) ) > 0){
          ec ho '<tab le cla s s= "s how_ord er _items "cel lsp acing = "0"> ';

            foreach ( $the _ order->get_it e ms ( )  a s  $it em) {
               $ pr odu c t       =  a p pl y _filters( 'woocomme rc e_orde r_ite m_product', $ item->get_ p r o duct(),$ite m  ) ; 
                  $item_me t a_html     =  wc_disp lay_item_ m e ta( $ite m,arr ay(  'e c h o'  => false ) ) ;                ?>
              <trclass="< ?p hp  e ch o a pply_ f ilters('w ooc om mer ce_ad m in_ord er_it em_c la ss ' , ' ', $ite m ,$ t he_o rd er  );? >"> 
                  <td cl ass = "qty "> <? php ech o esc_html( $ it em->get_qu an tit y() ); ? > </td>
                       < t d class ="n ame"> 
                      <?p hp  if  ( $p ro duc t ) :?>                       <? php ech o ( wc_product_sku _ ena bled() && $pr odu ct-> g e t_ sku ( )) ? $ pr o duc t - >get_sku().'-':  '';?><a h re f =" <?php echo get _e dit_pos t_link(  $pro d uct->ge t_id()
68_shop_order_columns', 20_);

/**
 *_Output custom columns for_orders.
 *_@param_string $column
_*_@param int $post_id
_*/
function so_43719068_render_shop_order_columns( $column,_$post_id ) {
 _  global_$the_order;

_   if ( empty( $the_order ) || $the_order->get_id()!== $post_id ) {
 __ ___ $the_order = wc_get_order( $post_id_);
    }

_ _ switch ( $column ) :

  __  _ case 'order_items' :

     _     _/* translators: %d:_order_items_count */
  _     _   echo '<a href="#"_class="show_order_items">'. apply_filters( 'woocommerce_admin_order_item_count', sprintf( _n( '%d item',_'%d items', $the_order->get_item_count(), 'woocommerce' ), $the_order->get_item_count()_), $the_order ). '</a>';

 _ _    _  _if (_sizeof( $the_order->get_items() )_> 0 ) {

  _  _     __  _echo_'<table_class="show_order_items" cellspacing="0">';

_  __ __     __ foreach ( $the_order->get_items() as $item )_{
   __   _    _     _$product _ _    = apply_filters( 'woocommerce_order_item_product', $item->get_product(), $item );
 _     _   _ __  __ $item_meta_html_     = wc_display_item_meta(_$item, array(_'echo' => false ) );
 _   __     _     _?>
    ___    _     _  <tr_class="<?php echo apply_filters( 'woocommerce_admin_order_item_class', '', $item, $the_order_);?>">
_     __     ___    _   <td class="qty"><?php echo_esc_html( $item->get_quantity() );?></td>
      _  _    ___       <td class="name">
 _ _  _         _      _    <?php  if ( $product ) :?>
_       _      _   __      ____ <?php echo_( wc_product_sku_enabled() &&_$product->get_sku() )? $product->get_sku().'-':_'';?><a href="<?php_echo get_edit_post_link( $product->get_id()