For example you added to the table meta key '_regular_price'. By default it will be displayed as simple number or string. But what about if you want to format it and display with even another information near? Overload its output!
In file functions.php of the current WordPress theme add next code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | add_action('tableon_profile_extend', function($profile, $action_name) { if ($action_name === 'tableon_default_tables') { if (isset($profile['_regular_price'])) { $profile['_regular_price']['action'] = function($post_id) { return format_price(get_post_meta($post_id, '_regular_price', true)); }; } } return $profile; }, 10, 2); |
format_price here is your custom function which format data by your business logic.
Also read: https://posts-table.com/how-to-display-custom-boolean-meta-field/