Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
742 B
0
Indexable
Never
add_action('salesking_my_earnings_custom_columns', function(){
	?>
	<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('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
	        $paid_date = $orderobj->get_meta('_paid_date');

	     	echo $paid_date ? date_i18n(get_option('date_format'), strtotime($paid_date)) : 'NB';

	        ?></span>
	    </div>
	</td>
	<?php
});
Leave a Comment