If you need to modificate output of any field predefined in TABLEON you can use next code:
1 2 3 4 5 6 7 8 9 10 11 12 | add_action('tableon_profile_extend', function($profile, $action_name) { if ($action_name === 'tableon_default_tables') { $profile['__sale']['action'] = function($post_id) { $meta=get_post_meta($post_id, '__sale', true ); return $meta ? "<span class='your-class-here'>Yes</span>" : "<span class='your-class-here'>No</span>"; }; } return $profile; }, 10, 2); |
In the example you can see output modification of the meta column '__sale'.