City and State

mail@pastecode.io avatar
unknown
php
2 years ago
741 B
2
Indexable
Never
add_action('salesking_customers_custom_columns_header', function(){
	?>
	<th class="nk-tb-col tb-col-md"><span class="sub-text"><?php esc_html_e('City','salesking'); ?></span></th>
	<th class="nk-tb-col tb-col-md"><span class="sub-text"><?php esc_html_e('State','salesking'); ?></span></th>
	<?php
});
add_action('salesking_customers_custom_columns_content', function($customerobj){
	?>
	<td class="nk-tb-col tb-col-lg">
	    <div>
	        <span class="tb-amount"><?php 
	        echo $customerobj->get_billing_city();

	    ?></span>
	    </div>
	</td>
	<td class="nk-tb-col tb-col-lg">
	    <div>
	        <span class="tb-amount"><?php 
	        echo $customerobj->get_billing_state();

	    ?></span>
	    </div>
	</td>
	<?php
}, 10, 1);