Use hook tableon_profile_extend for it.
Here is some examples:
- Lets add referral button to the table:123456789101112131415161718192021add_action('tableon_profile_extend', function($profile, $action_name) {if ($action_name === 'tableon_default_tables') {$profile['refferals'] = ['title' => 'Refferal btn','order' => FALSE,'action' => function($post_id) {$refferal = 'demo';return TABLEON_HELPER::draw_html_item('a', ['href' => "https://demo.posts-table.com?ref={$refferal}&post_id={$post_id}",'class' => 'tableon-btn','target' => '_blank'], 'Get it for free');}];}return $profile;}, 10, 2);
- This is good for external posts you promoted on your site
- Also you can get referral link in another way, for example take if from the post metadata