Untitled
unknown
plain_text
a year ago
1.3 kB
6
Indexable
add_action('salesking_my_earnings_custom_columns', function(){ ?> <th class="nk-tb-col tb-col-sm"><span class="sub-text"><?php esc_html_e('Earnings Value','salesking'); ?></span></th> <th class="nk-tb-col tb-col-sm"><span class="sub-text"><?php esc_html_e('Paid Date','salesking'); ?></span></th> <?php }); add_action('salesking_my_earnings_custom_columns_footer', function(){ ?> <th class="nk-tb-col tb-col-md"><?php esc_html_e('earnings','salesking'); ?></th> <th class="nk-tb-col tb-col-md"><?php esc_html_e('paid date','salesking'); ?></th> <?php }); add_action('salesking_my_earnings_custom_columns_content', function($orderobj){ ?> <td class="nk-tb-col tb-col-md"> <div> <span class="tb-sub text-primary"><?php if ($orderobj !== false){ $earning_id = $orderobj->get_meta('salesking_earning_id'); $earnings_total = get_post_meta($earning_id,'salesking_commission_total', true); echo $earnings_total; } ?></span> </div> </td> <td class="nk-tb-col tb-col-md"> <div> <span class="tb-sub text-primary"><?php $paid_date = $orderobj->get_meta('_paid_date'); echo $paid_date ? date_i18n(get_option('date_format'), strtotime($paid_date)) : 'NB'; ?></span> </div> </td> <?php });
Editor is loading...
Leave a Comment