Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
641 B
14
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('Salesrep','salesking'); ?></span></th>
	<?php
});

add_filter('salesking_customers_ajax_columns_data', function($columns, $customer){
	ob_start();
	?>
	<td class="nk-tb-col tb-col-md">
	        <span class="tb-amount"><?php echo get_user_meta($customer->get_id(),'salesrep', true); ?></span>
	    </div>
	</td>
	<?php
	$new_col = ob_get_clean();
	$columns = array($columns[0], $columns[1], $new_col, $columns[2], $columns[3], $columns[4], $columns[5], $columns[6]);

	return $columns;
}, 10, 2);
Leave a Comment